weekly_ctf_bot/
├── src/
│ └── weekly_ctf_bot/ # Project source root
│ ├── cogs/ # Discord slash commands
│ ├── ui/ # Discord message views and modals
│ ├── config.py # Configuration handler
│ ├── database.py # Abstraction for database models and access
│ ├── __init__.py # Main bot code
│ └── __main__.py # Bot entrypoint
│
├── .env # Environment variables
├── challenges.db # SQLite database
├── CONTRIBUTING.md # Contributing guide
├── LICENSE # Project software license
├── pyproject.toml # Project metadata & dependencies
└── README.md
- Poetry 1.8.0 or higher.
- Python 3.14 or higher.
git clone https://github.com/acucys/weekly_ctf_bot.git
cd weekly_ctf_bot# Change `3.14` if you wish to use a different Python version
poetry env use 3.14
poetry installCreate a .env file using the provided .env.example template:
cp .env.example .envFill in required values:
BOT_MODE=dev(or prod)BOT_TOKEN=<your Discord bot token>DATABASE_URL=<the url for your SQL database, with auth included>
poetry run weekly_ctf_botThis starts the discord bot in development mode.
Please refer to the contributing guide for more details.