From e930ce6994ce23a2207ff506b490aac78609c64d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 4 Jan 2025 12:29:35 +0300 Subject: [PATCH] prevent run automine on start if automine disabled --- ubot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubot.py b/ubot.py index a606884..02c3c34 100644 --- a/ubot.py +++ b/ubot.py @@ -193,7 +193,8 @@ async def main(): else: await autobioebbing.eb(client, c, conn, None, None, get_id, my_id, message_q) - asyncio.ensure_future(avocmine.automine_avocado_task(client)) + if config.automine: + asyncio.ensure_future(avocmine.automine_avocado_task(client)) await stat.biomod(client, c)