From b7c19293b67c5108816e0bdcbcdef39e8f5bac42 Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 28 Nov 2024 11:33:12 +0100 Subject: [PATCH] Added regex for web sits --- src/ragnar/bot.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ragnar/bot.py b/src/ragnar/bot.py index 115631e..438e3d6 100644 --- a/src/ragnar/bot.py +++ b/src/ragnar/bot.py @@ -16,14 +16,14 @@ class Bot: self.rant_history = [] self.amount_of_rants_to_check = 5 names = { - "no-spam": "anna", - "no-spam1": "ira", - "no-spam2": "katya", - "no-spam3": "nastya", - "no-spam4": "vira", + "no-spam": "Anna", + "no-spam1": "Ira", + "no-spam2": "Katya", + "no-spam3": "Nastya", + "no-spam4": "Vira", } self.name = names.get(self.name, "everyone") - self.mark_text = "I am {} and downvoted you because you are 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. Have a nice day!\n\n@retoor: are you proud?".format( + self.mark_text = "I am {} 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\n* If it is not spam, please contact @retoor.".format( self.name ) self.auth = None @@ -33,6 +33,7 @@ class Bot: "hacker", "recovery", {"regex": r"\([+,(,0-9,),-]{7,}"}, + {"regex": r"([\w\d]\.[\w\d]{1,5}\/[\w\d]+|http|www)"}, "money", "landscape", "cyber",