From 64810982fa6efaaa6573925a57938c4538866411 Mon Sep 17 00:00:00 2001 From: phixxy Date: Sat, 27 Jan 2024 13:18:56 -0800 Subject: [PATCH] added self to on_reaction_add() --- extensions/chatgpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/chatgpt.py b/extensions/chatgpt.py index c0e17b5..97e98cb 100644 --- a/extensions/chatgpt.py +++ b/extensions/chatgpt.py @@ -363,7 +363,7 @@ class ChatGPT(commands.Cog): self.bot.logger.exception("Problem with chat_response in chatgpt") @commands.Cog.listener() - async def on_reaction_add(reaction, user): + async def on_reaction_add(self, reaction, user): if not random.randint(0,9): message = reaction.message emoji = reaction.emoji