aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-12-18 18:24:18 +0100
committertv <tv@nomic.retiolum>2013-12-18 18:24:18 +0100
commita7c04c54b3836d6d16378e9ec26ac8a52f217fdc (patch)
tree345276baa9fe145103a153acc673131cce35ce07 /config.py
parentf48968d7c849419bdaed49093c23f2a2cc774577 (diff)
Reaktor: add command-not-found-pattern
Diffstat (limited to 'config.py')
-rw-r--r--config.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/config.py b/config.py
index 1b285e4..8e7a879 100644
--- a/config.py
+++ b/config.py
@@ -1,5 +1,7 @@
debug = True
+
+# CAVEAT name should not contains regex magic
name = 'kwasybot'
irc_alarm_timeout = 300
@@ -25,6 +27,10 @@ irc_commands = [
default_command('rev'),
default_command('uptime'),
default_command('nocommand'),
- { 'pattern': '^.*\\b' + name + '(?:\\b[^:].*)?$',
+ # command not found
+ { 'pattern': '^(?:' + name + '|\\*):.*',
+ 'argv': [ 'commands/say', '{TODO:fromname}: you are made of stupid!' ] },
+ # "highlight"
+ { 'pattern': '\\b' + name + '\\b',
'argv': [ 'commands/say', 'I\'m famous' ] }
]