Fixed logging in issue.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m26s
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m26s
This commit is contained in:
parent
0ec6ac39f4
commit
25e395f9b2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user