From c854aa16a2dd220756a65dd3acd9520cb6695e30 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Wed, 28 Sep 2016 13:52:38 +0100 Subject: [PATCH] Accept treats. --- bot.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 57eb601..026ca49 100755 --- 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, -- 2.7.4