From 85f63c9deec618e9beccd3fc1efc44754b96c76b Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Fri, 30 Sep 2016 13:38:14 +0100 Subject: [PATCH] More responses. --- bot.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 2ba63bf..48964d3 100755 --- 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, -- 2.7.4