chore(main.py): remove redundant bot.run() call at the top of the file

feat(main.py): add newline at the end of the file for consistency
chore(functionscalls.py): remove extra blank lines
feat(functionscalls.py): add unsplash_random_image_url constant for generating random image URLs
feat(functionscalls.py): add add_reaction_to_last_message() function for adding reactions to the last message
This commit is contained in:
Paillat
2023-07-16 21:18:30 +02:00
committed by Paillat
parent bc65a98742
commit e7948a4e67
2 changed files with 5 additions and 2 deletions

View File

@@ -73,7 +73,9 @@ server_normal_channel_functions = [
}
},
]
unsplash_random_image_url = "https://source.unsplash.com/random/1920x1080"
async def add_reaction_to_last_message(message_to_react_to: discord.Message, emoji, message=""):
if message == "":
await message_to_react_to.add_reaction(emoji)