More responses.
authorCMDR furrycat <elite@furrycat.net>
Fri, 30 Sep 2016 12:38:14 +0000 (13:38 +0100)
committerCMDR furrycat <elite@furrycat.net>
Fri, 30 Sep 2016 12:38:14 +0000 (13:38 +0100)
bot.py

diff --git a/bot.py b/bot.py
index 2ba63bf..48964d3 100755 (executable)
--- a/bot.py
+++ b/bot.py
@@ -385,9 +385,13 @@ def do_commands(message, command, raw, non_admin):
 
     rsstime.value = int(m.group(1))
 
-  elif command == 'treat' or command == 'stroke':
+  elif command in ['treat', 'stroke', 'fuss']:
     # treat
-    for response in ['om nom nom', '^-^', 'meow!', 'lick']:
+    if command == 'treat':
+      responses = ['om nom nom', '^-^', 'meow!', 'lick']
+    else:
+      responses = ['nuzzle', '^-^', 'meow!', 'mrrp']
+    for response in responses:
       said = yield from maybe_say(message.channel, response)
       if said:
         yield from maybe_play_sound(voice_channel_for_channel(message.channel), 'purr.wav', join = False)
@@ -619,7 +623,7 @@ modules = {
   'any': {
     'fn': do_commands,
     'args': [True],
-    'commands': ['bling', 'stroke', 'treat']
+    'commands': ['bling', 'fuss', 'stroke', 'treat']
   },
   'edi': {
     'fn': do_edi,