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:
5d182e0
)
Respond to pats.
author
CMDR furrycat
<elite@furrycat.net>
Sun, 2 Oct 2016 10:01:38 +0000
(11:01 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Sun, 2 Oct 2016 10:01:38 +0000
(11:01 +0100)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
e0f4e10
..
593ea7d
100755
(executable)
--- a/
bot.py
+++ b/
bot.py
@@
-386,7
+386,7
@@
def do_commands(message, command, raw, non_admin):
rsstime.value = int(m.group(1))
- elif command in ['treat', 'stroke', 'fuss']:
+ elif command in ['treat', 'stroke', 'fuss'
, 'pat'
]:
# treat
if command == 'treat':
responses = ['om nom nom', '^-^', 'meow!', 'lick']
@@
-624,7
+624,7
@@
modules = {
'any': {
'fn': do_commands,
'args': [True],
- 'commands': ['bling', 'fuss', 'stroke', 'treat']
+ 'commands': ['bling', 'fuss', 'stroke', 'treat'
, 'pat'
]
},
'edi': {
'fn': do_edi,