diff options
| -rw-r--r-- | Reaktor/config.py | 8 | ||||
| -rwxr-xr-x | util/t/dic/can-scrape | 2 | 
2 files changed, 8 insertions, 2 deletions
| diff --git a/Reaktor/config.py b/Reaktor/config.py index 1b285e4b..ec4abcb1 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' ] }  ] diff --git a/util/t/dic/can-scrape b/util/t/dic/can-scrape index a31e0f6c..702c2a02 100755 --- a/util/t/dic/can-scrape +++ b/util/t/dic/can-scrape @@ -3,4 +3,4 @@ set -euf  dic test |    sed 's/\[[^m]*m//g' | -  grep -q '^test - der Test$' +  grep -q 'test - der Test' | 
