-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.py
More file actions
26 lines (20 loc) · 721 Bytes
/
constants.py
File metadata and controls
26 lines (20 loc) · 721 Bytes
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
import os
from dotenv import load_dotenv
from colorama import Fore, Style, init
load_dotenv()
init(autoreset=True) # ensures that styles reset automatically after each print, which helps avoid color bleeding.
DISCORD_AUTH_TOKEN = os.getenv("DISCORD_AUTH_TOKEN", "")
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
MIN_DELAY = int(os.getenv("MIN_DELAY", 30)) * 60 # in seconds
MAX_DELAY = int(os.getenv("MAX_DELAY", 60)) * 60 # in seconds
CHAT_ID = os.getenv("CHAT_ID", "")
BOT_TOKEN = os.getenv("BOT_TOKEN", "")
CONTEXT_COLORS = {
"error": Fore.RED,
"warning": Fore.YELLOW,
"info": Fore.BLUE,
"success": Fore.GREEN,
"normal": Fore.WHITE,
"hightlight": Fore.CYAN
}
RESET_STYLE = Style.RESET_ALL