From 15ca832993f6c1b8ed6f174d723d73079bb18050 Mon Sep 17 00:00:00 2001 From: kgrim Date: Wed, 15 Jan 2025 16:53:12 +0100 Subject: [PATCH] Made cli start mq bot hang infinitely to preserve main thread --- chatbot_core/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chatbot_core/cli.py b/chatbot_core/cli.py index e64c094..5578c8c 100644 --- a/chatbot_core/cli.py +++ b/chatbot_core/cli.py @@ -19,6 +19,8 @@ import os import argparse +from threading import Event + import click from os.path import expanduser, relpath @@ -74,6 +76,7 @@ def cli_start_mq_bot(): help="Chatbot entrypoint name", type=str) args = parser.parse_args() run_mq_bot(args.bot_name) + Event().wait() def cli_start_bots():