From 07ec9d3552f1175f1fe1f355c36a611ec8c08988 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Fri, 4 Oct 2019 18:01:43 +0200 Subject: [PATCH] Fix formatting --- scripts/chatbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/chatbot.py b/scripts/chatbot.py index b91272e..6c6470c 100644 --- a/scripts/chatbot.py +++ b/scripts/chatbot.py @@ -79,8 +79,8 @@ def register_handlers(bot): "Sorry @{}, only operators and shifters are allowed to mess " "with me, sorry...".format(user), channel_id) return - status = subprocess.check_output(['supervisorctl', - 'status']).decode('ascii') + status = "```\n" + subprocess.check_output( + ['supervisorctl', 'status']).decode('ascii') + "\n```" bot.send_message(status, channel_id) def shifters(msg, user, channel_id): -- GitLab