feat: add regex pattern for validating website URLs in input forms
This commit is contained in:
parent
96f1f98ab7
commit
9fa245e5ab
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user