From e2b4d5270b996322583038e3e1037b4e5c339bb9 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 15 Jul 2014 12:12:28 +0200 Subject: Reaktor on_ping -> nag --- Reaktor/config.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'Reaktor/config.py') 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 + } +] -- cgit v1.2.3