diff options
author | tv <tv@nomic.retiolum> | 2014-04-20 12:30:17 +0200 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2014-04-20 12:30:17 +0200 |
commit | 7862c9c38d8109f8f307e7c1a6f374c9d4f0f41e (patch) | |
tree | cde93ad9545ead486a3672ff2c4fd70617315990 /config.py | |
parent | c16a558704572fc120244b912b9d4c2e4e2a1c3b (diff) |
reaktor.py: add on_join hook: tell NICK MSG...
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -32,6 +32,12 @@ public_commands = [ default_command('rev'), default_command('uptime'), default_command('nocommand'), + { + 'capname': 'tell', + 'pattern': '^' + name + ':\\s*' + 'tell' + '\\s*(?:\\s+(?P<args>.*))?$', + 'argv': [ 'commands/tell-on_privmsg' ], + 'env': { 'state_file': workdir + '/tell.txt' } + }, # command not found { 'pattern': '^(?:' + name + '|\\*):.*', 'argv': [ 'commands/respond','You are made of stupid!'] }, @@ -46,3 +52,11 @@ public_commands = [ commands = [ default_command('reload') ] + +on_join = [ + { + 'capname': 'tell', + 'argv': [ 'commands/tell-on_join' ], + 'env': { 'state_file': workdir + '/tell.txt' } + } +] |