From 2d3c37292de4650328add52af96f6cce8b129282 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Wed, 2 Oct 2019 23:22:06 +0200 Subject: [PATCH] Fix message --- scripts/chatbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/chatbot.py b/scripts/chatbot.py index 5393203..e582bdb 100644 --- a/scripts/chatbot.py +++ b/scripts/chatbot.py @@ -70,7 +70,7 @@ def register_handlers(bot): try: with open(CONFIG, 'r') as fobj: config = toml.load(fobj) - shifters = msg.split("shifters are now ")[1].strip() + shifters = msg.split("shifters are ")[1].strip() config['Alerts']['shifters'] = shifters with open(CONFIG, 'w') as fobj: toml.dump(config, fobj) @@ -88,7 +88,7 @@ def register_handlers(bot): help_str = f""" Hi @{user} I was built to take care of the monitoring alerst. Here is how you can use me: - - `@{BOTNAME} shifters are now cnorris and bspencer` + - `@{BOTNAME} shifters are cnorris and bspencer` -> set the new shifters who I may annoy with chat messages and emails. - `@{BOTNAME} status` -> show some status -- GitLab