feat: initial project setup — Vision Studio bot
Some checks failed
CI / lint (push) Failing after 2s
CI / test (push) Failing after 1s

- 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:
Mathis 2026-09-19 12:11:06 +02:00
commit e44349cea9
17 changed files with 396 additions and 0 deletions

21
config.py Normal file
View 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", "")