feat: initial project setup — Vision Studio bot
- Python 3.12 + discord.py - Docker + docker-compose - Forgejo Actions CI (lint + test) - Cog system with /hello example - deploy.sh for auto-deployment
This commit is contained in:
commit
e44349cea9
17 changed files with 396 additions and 0 deletions
21
config.py
Normal file
21
config.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import os
|
||||
from pathlib import Path
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
DATA_DIR = BASE_DIR / "data"
|
||||
LOGS_DIR = BASE_DIR / "logs"
|
||||
|
||||
DATA_DIR.mkdir(exist_ok=True)
|
||||
LOGS_DIR.mkdir(exist_ok=True)
|
||||
|
||||
DISCORD_TOKEN = os.getenv("DISCORD_TOKEN", "")
|
||||
APPLICATION_ID = os.getenv("APPLICATION_ID", "")
|
||||
DEV = os.getenv("DEV", "").strip() in ("1", "true", "yes")
|
||||
|
||||
FORGEJO_URL = os.getenv("FORGEJO_URL", "")
|
||||
FORGEJO_TOKEN = os.getenv("FORGEJO_TOKEN", "")
|
||||
FORGEJO_OWNER = os.getenv("FORGEJO_OWNER", "")
|
||||
FORGEJO_REPO = os.getenv("FORGEJO_REPO", "")
|
||||
Loading…
Add table
Add a link
Reference in a new issue