Fixed logging in issue.
Build Ragnar anti spam bot / Build (push) Successful in 1m26s

This commit is contained in:
2024-12-17 17:33:13 +01:00
parent 0ec6ac39f4
commit 25e395f9b2
+3 -5
View File
@@ -19,12 +19,10 @@ def parse_args():
def bot_task(username, password):
log.info(f"Created new bot runniner. Username: {username}")
while True:
time.sleep(random.randint(1, 50))
bot = Bot(username=username, password=password)
bot.login()
try:
time.sleep(random.randint(1, 50))
bot = Bot(username=username, password=password)
bot.login()
bot.fight()
except Exception as ex:
log.critical(ex, exc_info=True)