Moved reaction code

This commit is contained in:
NikolajDanger
2021-04-06 11:09:38 +02:00
parent 682a20f62d
commit 1ea2f7ecbf
3 changed files with 47 additions and 51 deletions

View File

@ -24,5 +24,11 @@ class EventCog(commands.Cog):
async def on_error(self, method, *args, **kwargs):
await self.bot.errorHandler.on_error(method)
# If someone reacted to a message, checks if it's a reaction it's
# Gwendolyn has been waiting for, and then does something
@commands.Cog.listener()
async def on_reaction_add(self, reaction, user):
await self.bot.eventHandler.on_reaction_add(reaction, user)
def setup(bot):
bot.add_cog(EventCog(bot))