/CTFd-bot

Primary LanguagePython

CTFd bot

This is a Discord bot for announcing CTFD first blood and displaying the Scoreboard. I use this bot on GT72 CTF.

Configuration

  1. Create a Discord channel webhook for the channel where you want the first bloods to be announced and copy the webhook link.

  2. Create a CTFd API token in your user settings and copy that down.

  3. Create and get discord token bot for displaying Scoreboard.

  4. 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
  5. Go to app/webhook/config.py edit

    • Host
    • Webhook link
    • CTFd API token

Command

Start bot

docker-compose up --build -d

Restart bot

docker-compose restart

Stop bot

docker-compose down

Source

https://github.com/Aravindha1234u/DisCTF

https://github.com/jordanbertasso/CTFd-First-Blood-Discord