This commit is contained in:
parent
74a57de434
commit
7805a3bee2
@ -1,7 +1,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
from concurrent.futures import ProcessPoolExecutor as Executor
|
from concurrent.futures import ThreadPoolExecutor as Executor
|
||||||
|
|
||||||
from ragnar import log
|
from ragnar import log
|
||||||
from ragnar.bot import Bot
|
from ragnar.bot import Bot
|
||||||
@ -19,10 +19,12 @@ 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}")
|
||||||
time.sleep(random.randint(1, 20))
|
time.sleep(random.randint(1, 20))
|
||||||
|
while True:
|
||||||
|
|
||||||
|
time.sleep(random.randint(1, 120))
|
||||||
bot = Bot(username=username, password=password)
|
bot = Bot(username=username, password=password)
|
||||||
bot.login()
|
bot.login()
|
||||||
while True:
|
|
||||||
time.sleep(random.randint(1, 20))
|
|
||||||
try:
|
try:
|
||||||
bot.fight()
|
bot.fight()
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
@ -45,10 +47,19 @@ def main():
|
|||||||
"MichelleWeeks",
|
"MichelleWeeks",
|
||||||
"JaredRuiz",
|
"JaredRuiz",
|
||||||
"LoriMcgee",
|
"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:
|
for username in usernames:
|
||||||
executor.submit(bot_task, f"{username}@molodetz.nl", args.password)
|
executor.submit(bot_task, f"{username}@molodetz.nl", args.password)
|
||||||
executor.shutdown(wait=True)
|
executor.shutdown(wait=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user