1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 20:23:12 +00:00

Add custom content reactions

This commit is contained in:
wlinator 2023-06-29 08:08:13 -04:00
parent 3354791275
commit 90e2df1cf3

View file

@ -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)