Skip to content
Snippets Groups Projects
Commit 2d3c3729 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix message

parent 162bacb8
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ def register_handlers(bot): ...@@ -70,7 +70,7 @@ def register_handlers(bot):
try: try:
with open(CONFIG, 'r') as fobj: with open(CONFIG, 'r') as fobj:
config = toml.load(fobj) config = toml.load(fobj)
shifters = msg.split("shifters are now ")[1].strip() shifters = msg.split("shifters are ")[1].strip()
config['Alerts']['shifters'] = shifters config['Alerts']['shifters'] = shifters
with open(CONFIG, 'w') as fobj: with open(CONFIG, 'w') as fobj:
toml.dump(config, fobj) toml.dump(config, fobj)
...@@ -88,7 +88,7 @@ def register_handlers(bot): ...@@ -88,7 +88,7 @@ def register_handlers(bot):
help_str = f""" help_str = f"""
Hi @{user} I was built to take care of the monitoring alerst. Hi @{user} I was built to take care of the monitoring alerst.
Here is how you can use me: 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 -> set the new shifters who I may annoy with chat messages and
emails. emails.
- `@{BOTNAME} status` -> show some status - `@{BOTNAME} status` -> show some status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment