-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
44 lines (35 loc) · 1.59 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from config import settings
PROD_ENV = "PROD"
BETA_ENV = "BETA"
DEV_ENV = "DEV"
if settings.environment == BETA_ENV:
base_domain = "dev.snapshot.lieber.men/"
elif settings.environment == DEV_ENV:
base_domain = "localhost:8000/"
else:
base_domain = "snapshot.lieber.men/"
BASE_URL = "https://" + base_domain
NAME = "Snapshot"
EMOJI = "📸" if settings.environment == PROD_ENV else "📷"
SNAPSHOT = NAME + " " + EMOJI + ": "
SNAPSHOT_MULTI_LINE = NAME + " " + EMOJI
HOW_TO_START = SNAPSHOT + "Text START to play."
ENTER_USERNAME = SNAPSHOT + "Text STOP to unsubscribe.\n\nPlease enter your username:"
ENTER_USERNAME_AGAIN = SNAPSHOT + "please enter your username:"
CONFIRM_USERNAME = SNAPSHOT + 'You entered "{}", text YES to confirm or NO to change.'
BAD_USERNAME = (
SNAPSHOT
+ "Username is invalid. Must be less than 16 characters and contain only letters, numbers, and underscores. Please try again:"
)
REGISTRATION_SUCCESSFUL = (
SNAPSHOT + 'You\'ve successfully registered as "{}". Thanks! :)'
)
PROMPT = SNAPSHOT_MULTI_LINE + "\n\n✨{prompt}✨\n\nSTOP to unsubscribe."
START_KEYWORDS = ["START", "PLAY", "OPTIN", "SUBSCRIBE", "RESUBSCRIBE"]
POSITIVE_KEYWORDS = ["YES", "Y", "YE", "YEAH", "YEA", "CONFIRM", "YEP"]
NEGATIVE_KEYWORDS = ["NO", "N", "NOPE", "NAY", "NAH"]
INVALID_USER = SNAPSHOT + "Couldn't find user, please register first."
ALREADY_SUBMITTED = SNAPSHOT + "You already submitted for this prompt."
FAILED_PIC_SAVE = SNAPSHOT + "Couldn't save your pic, oops!"
VIEW_SUBMISSIONS = SNAPSHOT + "Thanks for submitting! View all submissions here:\n{}"
IGNORE_MESSAGE = "IGNORE_MESSAGE"