Respond to pats.
authorCMDR furrycat <elite@furrycat.net>
Sun, 2 Oct 2016 10:01:38 +0000 (11:01 +0100)
committerCMDR furrycat <elite@furrycat.net>
Sun, 2 Oct 2016 10:01:38 +0000 (11:01 +0100)
bot.py

diff --git a/bot.py b/bot.py
index e0f4e10..593ea7d 100755 (executable)
--- a/bot.py
+++ b/bot.py
@@ -386,7 +386,7 @@ def do_commands(message, command, raw, non_admin):
 
     rsstime.value = int(m.group(1))
 
-  elif command in ['treat', 'stroke', 'fuss']:
+  elif command in ['treat', 'stroke', 'fuss', 'pat']:
     # treat
     if command == 'treat':
       responses = ['om nom nom', '^-^', 'meow!', 'lick']
@@ -624,7 +624,7 @@ modules = {
   'any': {
     'fn': do_commands,
     'args': [True],
-    'commands': ['bling', 'fuss', 'stroke', 'treat']
+    'commands': ['bling', 'fuss', 'stroke', 'treat', 'pat']
   },
   'edi': {
     'fn': do_edi,