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
|
return
|
||||||
logger.info(
|
logger.info(
|
||||||
f"{command} by {message.author.name}, Game: {messagearray[1]}")
|
f"{command} by {message.author.name}, Game: {messagearray[1]}")
|
||||||
|
await message.add_reaction("⏳")
|
||||||
success = HandleSystemdService(game, command)
|
success = HandleSystemdService(game, command)
|
||||||
|
|
||||||
# :white_check_mark: :x:
|
# :white_check_mark: :x:
|
||||||
if success:
|
if success:
|
||||||
|
await message.remove_reaction("⏳")
|
||||||
logger.info(
|
logger.info(
|
||||||
f"{command} by {message.author.name}, Game: {messagearray[1]} was SUCESSFUL")
|
f"{command} by {message.author.name}, Game: {messagearray[1]} was SUCESSFUL")
|
||||||
await message.add_reaction("✅")
|
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:
|
else:
|
||||||
|
await message.remove_reaction("⏳")
|
||||||
logger.error(
|
logger.error(
|
||||||
f"{command} by {message.author.name}, Game: {messagearray[1]} FAILED!")
|
f"{command} by {message.author.name}, Game: {messagearray[1]} FAILED!")
|
||||||
await message.add_reaction("❌")
|
await message.add_reaction("❌")
|
||||||
|
|
Loading…
Reference in a new issue