-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
27 lines (19 loc) · 1007 Bytes
/
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
import os
from typing import Text, Dict
from dotenv import load_dotenv
load_dotenv() # Load private variables from .env file
TOKEN: Text = os.environ['TOKEN'] # Gets the token from .env file
COLORS: Dict[str, str] = {"red": "\033[31m", "green": "\033[32m", "yellow": "\033[33m", "blue": "\033[34m", "default": "\033[37m"}
COLOUR_MAIN = 0x43a1e8
COLOUR_GOOD = 0x03C04A
COLOUR_NEUTRAL = 0xFCAE1E
COLOUR_BAD = 0x900D09
BACKSLASH = '\n'
KO_FI = "https://ko-fi.com/heroescreed"
GITLINK = "https://github.com/heroescreed/Snipe-Bot"
DBENDPOINT = os.environ['DBENDPOINT'] # Gets the DBENDPOINT from .env file
DBUSER = os.environ['DBUSER'] # Gets the DBUSER from .env file
DBPASS = os.environ['DBPASS'] # Gets the DBPASS from .env file
DBNAME = os.environ['DBNAME'] # Gets the DBNAME from .env file
DBPORT = int(os.environ['DBPORT']) # Gets the DBPORT from .env file
DATABASE_MODE = "JSON" # USE EITHER "SQL" or "JSON" ONLY. Select the database mode you want to use. NB: JSON only supports single server uses