This commit is contained in:
parent
74a57de434
commit
7805a3bee2
@ -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))
|
||||
while True:
|
||||
|
||||
time.sleep(random.randint(1, 120))
|
||||
bot = Bot(username=username, password=password)
|
||||
bot.login()
|
||||
while True:
|
||||
time.sleep(random.randint(1, 20))
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user