diff --git a/scripts/chatbot.py b/scripts/chatbot.py index a0b95acd7c6e78129889e58dd49c198a9395846b..24c324b3dceeea408af99638b0d278277962b406 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)