Skip to content
Snippets Groups Projects
Verified Commit 4b9cf669 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

More verbose bot

parent 02d003b2
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment