From 2d23ec78377c48df962089e04273c71dbbb9eb51 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Fri, 4 Oct 2019 18:00:45 +0200
Subject: [PATCH] Fix output of shell command' :

---
 scripts/chatbot.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/chatbot.py b/scripts/chatbot.py
index 7579649..b91272e 100644
--- a/scripts/chatbot.py
+++ b/scripts/chatbot.py
@@ -79,7 +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'])
+        status = subprocess.check_output(['supervisorctl',
+                                          'status']).decode('ascii')
         bot.send_message(status, channel_id)
 
     def shifters(msg, user, channel_id):
-- 
GitLab