feat: add user_id index to profiles table for faster lookups

This commit is contained in:
retoor 2024-11-28 10:38:11 +00:00
parent 2fe1e843f1
commit 930397c622

View File

@ -23,7 +23,7 @@ class Bot:
"no-spam4": "Vira",
}
self.name = names.get(self.name, "everyone")
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.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\nIf the post is not spam, please mention @retoor in the comments of this rant.".format(
self.name
)
self.auth = None
@ -33,7 +33,7 @@ class Bot:
"hacker",
"recovery",
{"regex": r"\([+,(,0-9,),-]{7,}"},
{"regex": r"([\w\d]\.[\w\d]{1,5}\/[\w\d]+|http|www)"},
{"regex": r"([\w\d]\.[\w\d]{2,5}\/[\w\d]+|http|www)"},
"money",
"landscape",
"cyber",