This is a Discord bot for announcing CTFD first blood and displaying the Scoreboard. I use this bot on GT72 CTF.
-
Create a Discord channel webhook for the channel where you want the first bloods to be announced and copy the webhook link.
-
Create a CTFd API token in your user settings and copy that down.
-
Create and get discord token bot for displaying Scoreboard.
-
Login to CTFd as admin to get session cookie, go to
app/discord-bot/bot.py
edit- Url
- Session_cookie
- Channel_id
- Token discord bot
-
Go to
app/webhook/config.py
edit- Host
- Webhook link
- CTFd API token
Start bot
docker-compose up --build -d
Restart bot
docker-compose restart
Stop bot
docker-compose down