From 90e2df1cf3971dd5ed1d3e3027b299b4b10eba17 Mon Sep 17 00:00:00 2001 From: wlinator Date: Thu, 29 Jun 2023 08:08:13 -0400 Subject: [PATCH] Add custom content reactions --- handlers/ReactionHandler.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/handlers/ReactionHandler.py b/handlers/ReactionHandler.py index a7a6f4d..3b11801 100644 --- a/handlers/ReactionHandler.py +++ b/handlers/ReactionHandler.py @@ -26,9 +26,17 @@ class ReactionHandler: "Very doubtful." ] + self.full_content_reactions = { + "good bot": "thanks :3" + } + async def handle_message(self, message): content = message.content.lower() if (content.startswith("racu ") or content.startswith("racu, ")) and content.endswith("?"): response = random.choice(self.eightball) await message.reply(content=response) + + for trigger, response in self.full_content_reactions.items(): + if trigger.lower() == content: + await message.reply(response)