diff --git a/scripts/chatbot.py b/scripts/chatbot.py index b188a24127fcf3aae33e9b71f8a43f0b62497169..7579649385e567c2a14a69491f9c248057abcdde 100644 --- a/scripts/chatbot.py +++ b/scripts/chatbot.py @@ -76,8 +76,8 @@ def register_handlers(bot): return if not is_shifter(user) and not is_operator(user): bot.send_message( - "Only operators and shifters are allowed to mess " - "with me, sorry...", channel_id) + "Sorry @{}, only operators and shifters are allowed to mess " + "with me, sorry...".format(user), channel_id) return status = subprocess.check_output(['supervisorctl', 'status']) bot.send_message(status, channel_id) @@ -87,8 +87,9 @@ def register_handlers(bot): print("skipping") return if not is_operator(user): - bot.send_message("Only operators are allowed to set shifters!", - channel_id) + bot.send_message( + "Sorry @{}, only operators are allowed to set shifters!". + format(user), channel_id) return try: with open(CONFIG, 'r') as fobj: