Move config file into utilities.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
Loads environment variables for use in bot.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from dotenv.main import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
# Discord config
|
||||
BOT_PREFIX = "?"
|
||||
DISCORD_TOKEN = os.getenv("DISCORD_TOKEN", "")
|
||||
SQL_DB = os.getenv("SQL_DB", "")
|
||||
SQL_HOST = os.getenv("SQL_HOST", "")
|
||||
SQL_PASS = os.getenv("SQL_PASS", "")
|
||||
SQL_USER = os.getenv("SQL_USER", "")
|
||||
Reference in New Issue
Block a user