update reactions
This commit is contained in:
parent
aa8c5d5d8b
commit
d346a556e0
1 changed files with 4 additions and 1 deletions
5
app.py
5
app.py
|
@ -75,15 +75,18 @@ async def on_message(message):
|
|||
return
|
||||
logger.info(
|
||||
f"{command} by {message.author.name}, Game: {messagearray[1]}")
|
||||
await message.add_reaction("⏳")
|
||||
success = HandleSystemdService(game, command)
|
||||
|
||||
# :white_check_mark: :x:
|
||||
if success:
|
||||
await message.remove_reaction("⏳")
|
||||
logger.info(
|
||||
f"{command} by {message.author.name}, Game: {messagearray[1]} was SUCESSFUL")
|
||||
await message.add_reaction("✅")
|
||||
await message.channel.send(f"Successfully started {game['displayname']}! Happy gaming! 🎮")
|
||||
await message.channel.send(f"Successfully started {game['displayname']}! Happy gaming {message.author.mention}! 🎮")
|
||||
else:
|
||||
await message.remove_reaction("⏳")
|
||||
logger.error(
|
||||
f"{command} by {message.author.name}, Game: {messagearray[1]} FAILED!")
|
||||
await message.add_reaction("❌")
|
||||
|
|
Loading…
Reference in a new issue