A Discord bot for TTT (Tactical Training Team) that manages weekly event and topic overviews.
- Automated weekly summaries (events & topics)
- Slash commands for event/topic management
- Role-based permissions (Admin & Event Manager)
- Discord event synchronization
- Scheduled cron-based posting
git clone https://github.com/TacticalTrainingTeam/bot-nachrichtenoffizier.git
cd bot-nachrichtenoffizier
pnpm installCreate a .env file based on .env.example:
DISCORD_TOKEN- Bot token from Discord Developer PortalCLIENT_ID- Application client IDPOST_CRON- Cron expression for weekly posts (e.g.,0 19 * * SUN)TIMEZONE- Timezone for cron jobs (default:Europe/Berlin)
Deploy slash commands:
pnpm run deploy-commandsStart the bot:
pnpm startdocker-compose up -ddocker build -t nachrichtenoffizier .
docker run -d --name bot-nachrichtenoffizier \
--env-file .env \
-v $(pwd)/data:/app/data \
nachrichtenoffizierNote: The database is stored in ./data/botdata.sqlite and persists across container restarts.
/config channel- Set target channel for weekly posts/thema hinzufügen- Add a topic/thema löschen- Delete a topic by ID/event hinzufügen- Add an event/event löschen- Delete an event by ID/aufräumen datenbank- Clear all topics and events/aufräumen discord-sync- Sync Discord events to database/wochenüberblick- Post a test weekly summary
See LICENSE file for details.