diff options
author | makefu <github@syntax-fehler.de> | 2014-07-15 15:22:03 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-07-15 15:22:03 +0200 |
commit | bae95b3f9e926e381fe429a182f232e9a6c0b857 (patch) | |
tree | 4a36affc350be40c933272110c2c9ebe94d0cc06 /Reaktor/config.py | |
parent | 058d1fcf51ad6cf7c6b334ac2cac4408b168d0d7 (diff) | |
parent | de8c7b0950103fed60ce15e8474a270e96c688ad (diff) |
Merge branch 'master' of ssh://github.com/krebscode/painload
Diffstat (limited to 'Reaktor/config.py')
-rw-r--r-- | Reaktor/config.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Reaktor/config.py b/Reaktor/config.py index 247838d6..0483d46b 100644 --- a/Reaktor/config.py +++ b/Reaktor/config.py @@ -70,12 +70,7 @@ public_commands = [ }) ] commands = [ - default_command('reload') - default_command('nag', env={ - 'workdir': workdir, - 'hostsdir': '/home/tv/krebs/hosts', - 'servicesdir': '/home/tv/krebs/services' - }) + default_command('reload'), ] on_join = [ @@ -85,3 +80,15 @@ on_join = [ 'env': { 'state_file': workdir + '/tell.txt' } } ] + +on_ping = [ + { + 'capname': 'nag', + 'argv': [ 'commands/nag' ], + 'env': { + 'hosts_repo': 'https://github.com/krebscode/hosts', + 'services_repo': '/home/tv/krebs/services' + }, + 'targets': irc_channels + } +] |