diff --git a/scripts/chatbot.py b/scripts/chatbot.py index d1a139ff9ac03a97abfbe75ad00cde6fc255ea6f..f247e69c451d9263dbc9f2f1f2290f873766f9ca 100644 --- a/scripts/chatbot.py +++ b/scripts/chatbot.py @@ -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)