Compare commits

...

3 Commits

Author SHA1 Message Date
5c172c9da3 Removed dead bots.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 2m51s
2024-12-13 19:56:29 +01:00
9930e62bf8 Formatting. 2024-12-13 19:55:23 +01:00
bd2c68118c Added a few of the bots. 2024-12-13 19:54:20 +01:00
2 changed files with 15 additions and 6 deletions

View File

@ -24,7 +24,7 @@ class Bot:
"no-spam3": "Nastya",
"no-spam4": "Vira",
}
self.name = self.names.get(self.name, "everyone")
self.name = self.names.get(self.name, self.username.split("@")[0])
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.triggers = [

View File

@ -31,11 +31,20 @@ def bot_task(username, password):
def main():
args = parse_args()
with Executor(4) as executor:
for x in range(1, 5):
username = f"no-spam{str(x)}@molodetz.nl"
password = args.password
executor.submit(bot_task, username, password)
with Executor(500) as executor:
usernames = [
#"no-spam1",
#"no-spam2",
#"no-spam3",
#"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)