mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-21 02:44:57 +00:00
Clean up code
This commit is contained in:
parent
90a347eb0b
commit
c359356f4b
10 changed files with 51 additions and 36 deletions
|
@ -1,13 +1,13 @@
|
|||
import os
|
||||
import dotenv
|
||||
from discord import Object
|
||||
from lynxie.utils import get_env_or_error
|
||||
|
||||
DISCORD_TOKEN = get_env_or_error("DISCORD_TOKEN")
|
||||
DISCORD_TOKEN = dotenv.dotenv_values(".env").get("DISCORD_TOKEN") or os.environ.get("DISCORD_TOKEN") or None
|
||||
DISCORD_GUILD_ID = Object(id=1040757387033849976)
|
||||
LYNXIE_PREFIX = "?"
|
||||
|
||||
DATA_PATH = "data"
|
||||
ASSETS_PATH = "assets"
|
||||
DATA_PATH = os.path.join("lynxie", "data")
|
||||
ASSETS_PATH = os.path.join("lynxie", "assets")
|
||||
|
||||
DATABASE_URI = f"sqlite:///" + os.path.join(DATA_PATH, "lynxie.db")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue