diff --git a/src/ragnar/cli.py b/src/ragnar/cli.py index fc52916..4838533 100644 --- a/src/ragnar/cli.py +++ b/src/ragnar/cli.py @@ -1,7 +1,7 @@ import argparse import random import time -from concurrent.futures import ProcessPoolExecutor as Executor +from concurrent.futures import ThreadPoolExecutor as Executor from ragnar import log from ragnar.bot import Bot @@ -19,10 +19,12 @@ def parse_args(): def bot_task(username, password): log.info(f"Created new bot runniner. Username: {username}") time.sleep(random.randint(1, 20)) - bot = Bot(username=username, password=password) - bot.login() while True: - time.sleep(random.randint(1, 20)) + + time.sleep(random.randint(1, 120)) + bot = Bot(username=username, password=password) + bot.login() + try: bot.fight() except Exception as ex: @@ -45,10 +47,19 @@ def main(): "MichelleWeeks", "JaredRuiz", "LoriMcgee", - "AmandaFloyd" + "AmandaFloyd", + "tcpip", + "tcpudp", + "JoseRodriguez", + "CaseyHernandez", + "ToddHarris", + "AnneRose", + "GregoryBowman", + "LeahVasquez", + "JamesMedina" ] - with Executor(len(usernammes) + 1) as executor: + with Executor(len(usernames) + 1) as executor: for username in usernames: executor.submit(bot_task, f"{username}@molodetz.nl", args.password) executor.shutdown(wait=True)