git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
987090d
)
Accept treats.
author
CMDR furrycat
<elite@furrycat.net>
Wed, 28 Sep 2016 12:52:38 +0000
(13:52 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Wed, 28 Sep 2016 12:52:38 +0000
(13:52 +0100)
bot.py
patch
|
blob
|
history
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,