From 3e3064946517beb7d7d4f19372fa7ae194d5c67d Mon Sep 17 00:00:00 2001 From: matej2 <11059438+matej2@users.noreply.github.com> Date: Thu, 16 Jan 2025 19:37:00 +0100 Subject: [PATCH] Reorder constants, remove unused --- const.py | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/const.py b/const.py index 4b4b9c5..b4e7684 100644 --- a/const.py +++ b/const.py @@ -1,15 +1,10 @@ class Const: - # Cities - CITY_REGEX = '.+$' - - NOT_CHAR = '\W+' - COMMA_REGEX = ',+' - SPECIAL_CHARS = '[^A-Za-z0-9\s,]' + # Basic config + user = 'LocationInfoBot' + mention = f'u/{user}' - # TODO Add links - info about country - TRIGGER_PHARSE = 'location:' - TRIGGER_SUBREDDITS = 'naturephotography,AdventurePhotography,snow,UrbanExploring,Outdoors' - KEYWORD = 'Location:\s*([^.\n]+)' + # Regex selectors + CITY_REGEX = '.+$' # Response messages FOOTER = '\n\n---\n\n^(Content is intended to improve search engine optimization by providing information about location.' \ @@ -23,11 +18,6 @@ class Const: NOT_DETECTED = f'Did not detect any message. Please try again\n\n{FOOTER}' SPACE_REGEX = '\s+' - NONE = 'None' - - # Reddit meta - user = 'LocationInfoBot' - mention = f'u/{user}' @staticmethod def successfully_processed(city: str):