diff options
author | tv <tv@shackspace.de> | 2014-07-15 12:12:28 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-07-15 12:12:28 +0200 |
commit | e2b4d5270b996322583038e3e1037b4e5c339bb9 (patch) | |
tree | ae0cb08bbbc887aa834ce117f3728cabe6d54db6 /Reaktor/config.py | |
parent | 72ba736b99ea62499322f310f3ecfbd6c0cca344 (diff) |
Reaktor on_ping -> nag
Diffstat (limited to 'Reaktor/config.py')
-rw-r--r-- | Reaktor/config.py | 18 |
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 + } +] |