From: CMDR furrycat Date: Wed, 28 Sep 2016 12:52:38 +0000 (+0100) Subject: Accept treats. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=c854aa16a2dd220756a65dd3acd9520cb6695e30;p=furrycat%2Fcatbot.git Accept treats. --- 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,