mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
fixed reaction for denied commands
This commit is contained in:
committed by
Roberto Anić Banić
parent
850773ff44
commit
fbcac892ef
6
bot.py
6
bot.py
@@ -74,14 +74,14 @@ async def on_ready():
|
||||
bot_log = bot.get_channel(bot_log_id)
|
||||
reaction_confirm = '👌'
|
||||
reaction_failed = '⛔'
|
||||
reaction_deny = '👮'
|
||||
reaction_deny = '👮'
|
||||
refresh_piracy_cache()
|
||||
|
||||
async def react_with(ctx: Context, reaction: Emoji):
|
||||
try:
|
||||
await ctx.message.add_reaction(reaction)
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as e:
|
||||
print("Couldn't add a reaction: " + str(e))
|
||||
|
||||
@bot.event
|
||||
async def on_reaction_add(reaction: Reaction, user: User):
|
||||
|
||||
Reference in New Issue
Block a user