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 | 231c6e68078ea86f48d91ed065794fce52c25ac6 (patch) | |
tree | 27f3b9676435a06d97a228a5a39daaddf199b39a /Reaktor/config.py | |
parent | 2fe69bee8a4207cb83e3e6ce3de74069a6e5f3b1 (diff) |
reaktor.py: add on_join hook: tell NICK MSG...
Diffstat (limited to 'Reaktor/config.py')
-rw-r--r-- | Reaktor/config.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Reaktor/config.py b/Reaktor/config.py index 88701379..db4c8a3e 100644 --- a/Reaktor/config.py +++ b/Reaktor/config.py @@ -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' } + } +] |