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

This commit is contained in:
retoor 2024-12-17 17:33:09 +01:00
parent 0ec6ac39f4
commit 25e395f9b2

View File

@ -19,12 +19,10 @@ def parse_args():
def bot_task(username, password): def bot_task(username, password):
log.info(f"Created new bot runniner. Username: {username}") log.info(f"Created new bot runniner. Username: {username}")
while True: while True:
time.sleep(random.randint(1, 50))
bot = Bot(username=username, password=password)
bot.login()
try: try:
time.sleep(random.randint(1, 50))
bot = Bot(username=username, password=password)
bot.login()
bot.fight() bot.fight()
except Exception as ex: except Exception as ex:
log.critical(ex, exc_info=True) log.critical(ex, exc_info=True)