From 16ae876b272b9da62c79a68163f57be62717af49 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Tue, 10 Mar 2026 12:54:36 -0400 Subject: [PATCH] set max conversation messages --- vibe_bot/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vibe_bot/main.py b/vibe_bot/main.py index c74478e..3183c2b 100644 --- a/vibe_bot/main.py +++ b/vibe_bot/main.py @@ -304,6 +304,8 @@ async def talkforme(ctx, *, message: str): Usage: !talkforme bot1 bot2 4 some conversation topic """ + TALK_LIMIT = 20 + bot1_name, bot2_name, limit, topic_list = ( message.split(" ")[0], message.split(" ")[1], @@ -370,7 +372,7 @@ async def talkforme(ctx, *, message: str): current_user = flip_user(current_user) bot_counter = flip_counter(counter=bot_counter) - while message_counter < message_limit: + while message_counter < max(message_limit, TALK_LIMIT): current_bot = bot_list[bot_counter] logger.info(f"Current user is {current_user}") logger.info(f"Current bot is {current_bot}")