Refactor emoji usage instructions
This commit is contained in:
parent
8a705fb0d8
commit
cca242d2a4
1 changed files with 19 additions and 19 deletions
32
misc.py
32
misc.py
|
|
@ -218,6 +218,22 @@ def chat( # noqa: PLR0913, PLR0917
|
|||
for emoji in server_emojis:
|
||||
context += f" - {emoji!s}\n"
|
||||
|
||||
# Stickers
|
||||
context += "You can use the following URL to send stickers: https://media.discordapp.net/stickers/{sticker_id}.webp?size=4096\n"
|
||||
context += "Remember to only send the URL if you want to use the sticker in your message.\n"
|
||||
context += "You can use the following stickers:\n"
|
||||
for sticker in current_channel.guild.stickers:
|
||||
context += f" - {sticker!r}\n"
|
||||
|
||||
context += "The bot is in the following channels:\n"
|
||||
if all_channels_in_guild:
|
||||
for c in all_channels_in_guild:
|
||||
context += f"{c!r}\n"
|
||||
|
||||
context += "\nThe bot responds to the following users:\n"
|
||||
for user_id in allowed_users:
|
||||
context += f" - User ID: {user_id}\n"
|
||||
|
||||
context += "\n You can create bigger emojis by combining them:\n"
|
||||
context += "For example if you want to create a big rat emoji, you can combine the following emojis. The picture is three by three:\n"
|
||||
context += " - <:rat1:1405292421742334116>: + <:rat2:1405292423373918258> + <:rat3:1405292425446031400>\n"
|
||||
|
|
@ -237,22 +253,6 @@ def chat( # noqa: PLR0913, PLR0917
|
|||
context += "Licka and Sniffa emojis are dogs that lick and sniff things. For example anime feet, butts and sweat.\n"
|
||||
context += "If you want to use them, just send the emoji itself without any extra text.\n"
|
||||
|
||||
# Stickers
|
||||
context += "You can use the following URL to send stickers: https://media.discordapp.net/stickers/{sticker_id}.webp?size=4096\n"
|
||||
context += "Remember to only send the URL if you want to use the sticker in your message.\n"
|
||||
context += "You can use the following stickers:\n"
|
||||
for sticker in current_channel.guild.stickers:
|
||||
context += f" - {sticker!r}\n"
|
||||
|
||||
context += "The bot is in the following channels:\n"
|
||||
if all_channels_in_guild:
|
||||
for c in all_channels_in_guild:
|
||||
context += f"{c!r}\n"
|
||||
|
||||
context += "\nThe bot responds to the following users:\n"
|
||||
for user_id in allowed_users:
|
||||
context += f" - User ID: {user_id}\n"
|
||||
|
||||
prompt: str = (
|
||||
"You are in a Discord group chat. People can ask you questions.\n"
|
||||
"Try to be brief, we don't want bloated messages. Be concise and to the point.\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue