Performance change.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 58s

This commit is contained in:
retoor 2025-01-10 00:12:24 +01:00
parent c19fcc5b49
commit c5e4be342b
2 changed files with 0 additions and 2 deletions

View File

@ -127,7 +127,6 @@ class Bot:
def mark_as_sus(self, rant): def mark_as_sus(self, rant):
self.api.post_comment(rant["id"], self.mark_text) self.api.post_comment(rant["id"], self.mark_text)
self.rsleepii()
def fight(self): def fight(self):
self.rsleepii() self.rsleepii()

View File

@ -21,7 +21,6 @@ def bot_task(username, password):
log.info(f"Created new bot runniner. Username: {username}") log.info(f"Created new bot runniner. Username: {username}")
while True: while True:
try: try:
time.sleep(random.randint(1, 50))
bot = Bot(username=username, password=password) bot = Bot(username=username, password=password)
bot.login() bot.login()
bot.fight() bot.fight()