Skip to content

Commit

Permalink
Reorder constants, remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
matej2 committed Jan 16, 2025
1 parent e287b86 commit 3e30649
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions const.py
Original file line number Diff line number Diff line change
@@ -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.' \
Expand All @@ -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):
Expand Down

0 comments on commit 3e30649

Please sign in to comment.