From 7805a3bee2e6f03f3613436b63d84f2a898d95b8 Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 15 Dec 2024 01:35:03 +0100 Subject: [PATCH] New bots. --- src/ragnar/cli.py | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) 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)