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

Allow operators to check status

parent 830bdcdc
No related branches found
No related tags found
No related merge requests found
......@@ -74,10 +74,10 @@ def register_handlers(bot):
if channel_id != CHANNEL_ID:
print("skipping")
return
if not is_shifter(user):
if not is_shifter(user) and not is_operator():
bot.send_message(
"Only shifters are allowed to mess with me, sorry...",
channel_id)
"Only operators and shifters are allowed to mess "
"with me, sorry...", channel_id)
return
status = subprocess.check_output(['supervisorctl', 'status'])
bot.send_message(status, channel_id)
......
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