From 930397c622588fd784d860452e768036888185b0 Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 28 Nov 2024 10:38:11 +0000 Subject: [PATCH] feat: add user_id index to profiles table for faster lookups --- src/ragnar/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ragnar/bot.py b/src/ragnar/bot.py index 438e3d6..cdcbf0c 100644 --- a/src/ragnar/bot.py +++ b/src/ragnar/bot.py @@ -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",