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:
parent
3354791275
commit
90e2df1cf3
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue