From 4b9cf66914d1b232d64120c64da7171920231f1e Mon Sep 17 00:00:00 2001
From: Tamas Gal <himself@tamasgal.com>
Date: Mon, 29 Jul 2024 11:39:29 +0200
Subject: [PATCH] More verbose bot

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

diff --git a/backend/scripts/chatbot.py b/backend/scripts/chatbot.py
index bc17fe9..7b5f0a8 100755
--- a/backend/scripts/chatbot.py
+++ b/backend/scripts/chatbot.py
@@ -62,6 +62,7 @@ def get_channel_id(channel):
         if c['name'] == channel:
             print(f"Found channel ID for {channel} is {c['_id']}")
             return c['_id']
+    log.error("No channel found with name {}".format(channel))
 
 
 CHANNEL_ID = get_channel_id(CHANNEL)
@@ -71,6 +72,7 @@ def run():
     print("Running the monitoring bot system")
     bot = spawn_bot()
     register_handlers(bot)
+    bot.send_message("I am up and running!", CHANNEL_ID)
     bot.run()
 
 
-- 
GitLab