aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-04-20 12:30:17 +0200
committertv <tv@nomic.retiolum>2014-04-20 12:30:17 +0200
commit7862c9c38d8109f8f307e7c1a6f374c9d4f0f41e (patch)
treecde93ad9545ead486a3672ff2c4fd70617315990 /config.py
parentc16a558704572fc120244b912b9d4c2e4e2a1c3b (diff)
reaktor.py: add on_join hook: tell NICK MSG...
Diffstat (limited to 'config.py')
-rw-r--r--config.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/config.py b/config.py
index 8870137..db4c8a3 100644
--- a/config.py
+++ b/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' }
+ }
+]