summaryrefslogtreecommitdiffstats
path: root/Reaktor
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
commitcf60629422036cf3d8d6e10b086eb600cd16c975 (patch)
tree1e60883a2e77d9a13ad19936dda38cdcb6321a44 /Reaktor
parent8ca96d10e3ce2473138072e015728809ca35c5e6 (diff)
Reaktor: add command-not-found-pattern
Diffstat (limited to 'Reaktor')
-rw-r--r--Reaktor/config.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Reaktor/config.py b/Reaktor/config.py
index 1b285e4b..8e7a8790 100644
--- a/Reaktor/config.py
+++ b/Reaktor/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' ] }
]