From d109f1373039e7576e926ab88d8492fdc6271c08 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Mon, 3 May 2021 13:24:06 +0200 Subject: [PATCH] More unsolicited responses. --- plugins/o7/__init__.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/plugins/o7/__init__.py b/plugins/o7/__init__.py index 2e480a5..289b61e 100644 --- a/plugins/o7/__init__.py +++ b/plugins/o7/__init__.py @@ -1,19 +1,28 @@ import asyncio +import random from plugins import PluginCommand import bot class O7(object): RESPONSES = { - 'o7': 'o7' + 'afternoon': ['o7'], + 'bruh': ['Bruh!'], + 'evening': ['o7'], + 'hehe': [':joy_cat:', ':smile_cat:', ':smiley_cat:', 'LOL'], + 'hello': ['o7'], + 'hi': ['o7'], + 'lol': [':joy_cat:', ':smile_cat:', ':smiley_cat:', 'LOL'], + 'morning': ['o7'], + 'o7': ['o7'] } def description(self): return 'o7' async def not_our_message(self, message): - response = self.RESPONSES.get(message.content.strip().lower()) - if response is not None: - await bot.maybe_say(message.channel, response) + responses = self.RESPONSES.get(message.content.strip().lower()) + if responses is not None: + await bot.maybe_say(message.channel, random.choice(responses)) return PluginCommand.exclusive return PluginCommand.ignored -- 2.7.4