summaryrefslogtreecommitdiffstats
path: root/Reaktor/config.py
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-07-15 15:22:03 +0200
committermakefu <github@syntax-fehler.de>2014-07-15 15:22:03 +0200
commitbae95b3f9e926e381fe429a182f232e9a6c0b857 (patch)
tree4a36affc350be40c933272110c2c9ebe94d0cc06 /Reaktor/config.py
parent058d1fcf51ad6cf7c6b334ac2cac4408b168d0d7 (diff)
parentde8c7b0950103fed60ce15e8474a270e96c688ad (diff)
Merge branch 'master' of ssh://github.com/krebscode/painload
Diffstat (limited to 'Reaktor/config.py')
-rw-r--r--Reaktor/config.py19
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
+ }
+]