New bots.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m43s

This commit is contained in:
retoor 2024-12-15 01:35:03 +01:00
parent 74a57de434
commit 7805a3bee2

View File

@ -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)