+ Fix missing create acc

This commit is contained in:
Wong Yiek Heng 2025-10-05 19:58:41 +08:00
parent a3741e2650
commit f2a69e58d5

View File

@ -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