From 82566f00fefa2a09f669efdafdb22c6995024912 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Fri, 4 Oct 2019 18:09:10 +0200 Subject: [PATCH] Allow controlling the monitoring system --- scripts/chatbot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/chatbot.py b/scripts/chatbot.py index a0b95ac..24c324b 100644 --- a/scripts/chatbot.py +++ b/scripts/chatbot.py @@ -126,14 +126,16 @@ def register_handlers(bot): - `@{BOTNAME} shifters are cnorris and bspencer` -> set the new shifters who I may annoy with chat messages and emails. - - `@{BOTNAME} status` -> show some status + - `@{BOTNAME} status` -> show the status of the monitoring system + - `@{BOTNAME} supervisorctl` -> take control over the monitoring system - `@{BOTNAME} help` -> show this message """ bot.send_message(help_str, channel_id) handlers = [(['hello', 'hey', 'hi', 'ciao'], greet), (['status'], status), - (['help'], help), (['shifters'], shifters)] + (['help'], help), (['shifters'], shifters), + (['supervisorctl'], supervisorctl)] for trigger, handler in handlers: bot.add_dm_handler(trigger, handler) -- GitLab