Skip to content

Commit

Permalink
added stopping of bot if exit signal received
Browse files Browse the repository at this point in the history
  • Loading branch information
kirgrim committed Jan 15, 2025
1 parent 7ad693c commit 965aa34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chatbot_core/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ def cli_start_mq_bot():
parser.add_argument("--bot", dest="bot_name",
help="Chatbot entrypoint name", type=str)
args = parser.parse_args()
run_mq_bot(args.bot_name)

bot = run_mq_bot(args.bot_name)
wait_for_exit_signal()
bot.stop()


def cli_start_bots():
Expand Down

0 comments on commit 965aa34

Please sign in to comment.