Compare commits

..

No commits in common. "5c172c9da333c1b660db8cdd89d8547c53614eae" and "3c0707be6bbd2e422f928c1eedea0c7b232c8a6b" have entirely different histories.

2 changed files with 6 additions and 15 deletions

View File

@ -24,7 +24,7 @@ class Bot:
"no-spam3": "Nastya", "no-spam3": "Nastya",
"no-spam4": "Vira", "no-spam4": "Vira",
} }
self.name = self.names.get(self.name, self.username.split("@")[0]) self.name = self.names.get(self.name, "everyone")
self.mark_text = f"I am {self.name} and downvoted this post because post is considered spam. Your message will be removed from this community site due too much downvotes. See my profile for more information. Read my source code mentioned on my profile to see what you did wrong. Should be no problem for a developer.\n\nHave a nice day!\n\n\nIf the post is not spam, please mention @retoor in the comments of this rant.\n\n@ other ranters downvote this rant to fight spam together! Appearantly there are not enough ragnar bots to downvote this rant, that's why you see this message." self.mark_text = f"I am {self.name} and downvoted this post because post is considered spam. Your message will be removed from this community site due too much downvotes. See my profile for more information. Read my source code mentioned on my profile to see what you did wrong. Should be no problem for a developer.\n\nHave a nice day!\n\n\nIf the post is not spam, please mention @retoor in the comments of this rant.\n\n@ other ranters downvote this rant to fight spam together! Appearantly there are not enough ragnar bots to downvote this rant, that's why you see this message."
self.auth = None self.auth = None
self.triggers = [ self.triggers = [

View File

@ -31,20 +31,11 @@ def bot_task(username, password):
def main(): def main():
args = parse_args() args = parse_args()
with Executor(500) as executor: with Executor(4) as executor:
usernames = [ for x in range(1, 5):
#"no-spam1", username = f"no-spam{str(x)}@molodetz.nl"
#"no-spam2", password = args.password
#"no-spam3", executor.submit(bot_task, username, password)
#"no-spam4",
#"no-spam",
"no-spam2353",
"no-spam2351",
"no-spam2350",
"no-spam2349",
]
for username in usernames:
executor.submit(bot_task, f"{username}@molodetz.nl", args.password)
executor.shutdown(wait=True) executor.shutdown(wait=True)