summaryrefslogtreecommitdiffstats
path: root/Reaktor/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'Reaktor/config.py')
-rw-r--r--Reaktor/config.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/Reaktor/config.py b/Reaktor/config.py
index 1741be20..98f17d67 100644
--- a/Reaktor/config.py
+++ b/Reaktor/config.py
@@ -71,11 +71,6 @@ public_commands = [
]
commands = [
default_command('reload'),
- default_command('nag', env={
- 'workdir': workdir,
- 'hostsdir': '/home/tv/krebs/hosts',
- 'servicesdir': '/home/tv/krebs/services'
- })
]
on_join = [
@@ -85,3 +80,16 @@ on_join = [
'env': { 'state_file': workdir + '/tell.txt' }
}
]
+
+on_ping = [
+ {
+ 'capname': 'nag',
+ 'argv': [ 'commands/nag' ],
+ 'env': {
+ 'workdir': workdir,
+ 'hostsdir': '/home/tv/krebs/hosts',
+ 'servicesdir': '/home/tv/krebs/services'
+ },
+ 'targets': irc_channels
+ }
+]