Naming emotes appropriately

This commit is contained in:
Juan 2023-07-18 20:46:14 -04:00
parent 9aaf8d7a58
commit a2b4e5127d
4 changed files with 16 additions and 25 deletions

3
bot.py
View file

@ -17,8 +17,9 @@ async def send_message(message, user_message, is_private):
await message.channel.send("You do not have permission to manage emojis.")
return
gif_data, gif_name = response
try:
await message.guild.create_custom_emoji(name="gif", image=response)
await message.guild.create_custom_emoji(name=gif_name, image=gif_data)
await message.channel.send("Emote Added")
except discord.HTTPException as e:
await message.channel.send(f"An error occurred: {e}")