summaryrefslogtreecommitdiffstats
path: root/Reaktor/config.py
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-07-15 12:12:28 +0200
committertv <tv@shackspace.de>2014-07-15 12:12:28 +0200
commite2b4d5270b996322583038e3e1037b4e5c339bb9 (patch)
treeae0cb08bbbc887aa834ce117f3728cabe6d54db6 /Reaktor/config.py
parent72ba736b99ea62499322f310f3ecfbd6c0cca344 (diff)
Reaktor on_ping -> nag
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
+ }
+]