Accept treats.
authorCMDR furrycat <elite@furrycat.net>
Wed, 28 Sep 2016 12:52:38 +0000 (13:52 +0100)
committerCMDR furrycat <elite@furrycat.net>
Wed, 28 Sep 2016 12:52:38 +0000 (13:52 +0100)
bot.py

diff --git a/bot.py b/bot.py
index 57eb601..026ca49 100755 (executable)
--- a/bot.py
+++ b/bot.py
@@ -281,6 +281,13 @@ def do_commands(message, command, raw, non_admin):
 
     rsstime = int(m.group(1))
 
+  elif command == 'treat':
+    # treat
+    for response in ['om nom nom', '^-^', 'meow!', 'lick']:
+      said = yield from maybe_say(message.channel, response)
+      if said:
+        return
+
   yield from maybe_say(message.channel, 'purr')
 
 @asyncio.coroutine
@@ -438,7 +445,7 @@ modules = {
   'any': {
     'fn': do_commands,
     'args': [True],
-    'commands': ['bling']
+    'commands': ['bling', 'treat']
   },
   'edi': {
     'fn': do_edi,