Performance change.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 58s
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 58s
This commit is contained in:
parent
c19fcc5b49
commit
c5e4be342b
@ -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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user