Compare commits

...

3 Commits

Author SHA1 Message Date
7805a3bee2 New bots.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m43s
2024-12-15 01:35:03 +01:00
74a57de434 Repair. 2024-12-14 06:34:40 +01:00
d501aa5076 Better process pool.. 2024-12-14 06:33:30 +01:00
3 changed files with 32 additions and 20 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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:
@ -31,7 +33,6 @@ def bot_task(username, password):
def main():
args = parse_args()
with Executor(500) as executor:
usernames = [
# "no-spam1",
# "no-spam2",
@ -47,7 +48,18 @@ def main():
"JaredRuiz",
"LoriMcgee",
"AmandaFloyd",
"tcpip",
"tcpudp",
"JoseRodriguez",
"CaseyHernandez",
"ToddHarris",
"AnneRose",
"GregoryBowman",
"LeahVasquez",
"JamesMedina"
]
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)