From f2a69e58d5e7f41d1db388e2074d44bfcd14d618 Mon Sep 17 00:00:00 2001 From: Wong Yiek Heng Date: Sun, 5 Oct 2025 19:58:41 +0800 Subject: [PATCH] + Fix missing create acc --- cm_telegram.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cm_telegram.py b/cm_telegram.py index 975c7b6..345733d 100644 --- a/cm_telegram.py +++ b/cm_telegram.py @@ -26,7 +26,7 @@ async def menu_cmd_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) - async def get_acc_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: while creating_acc_now == True: await update.message.reply_text('CM account creation is running, queuing ...') - time.sleep(60) + time.sleep(1) creating_acc_now = True await update.message.reply_text('Start Getting CM Account ...') try: @@ -80,11 +80,12 @@ def monitor_amount_of_available_acc(): while True: bot = CM_BOT_HAL() available_size = len(bot.get_all_available_acc()) - print(available_size) if available_size <= max_available: + creating_acc_now = True for i in range(available_size, max_available): bot.create_new_acc() + creating_acc_now = False time.sleep(10 * 60) del bot