More unsolicited responses.
authorCMDR furrycat <elite@furrycat.net>
Mon, 3 May 2021 11:24:06 +0000 (13:24 +0200)
committerCMDR furrycat <elite@furrycat.net>
Mon, 3 May 2021 11:24:06 +0000 (13:24 +0200)
plugins/o7/__init__.py

index 2e480a5..289b61e 100644 (file)
@@ -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