A simple Discord bot designed to run Capture The Flag (CTF) challenges, allowing users to test their cybersecurity skills in a fun and interactive way.
- Start CTF Challenges: Initiate CTF challenges directly in the Discord server.
- Answer Submission: Users can submit their answers and receive immediate feedback.
- Score Tracking: Tracks user scores and displays their progress.
- Leaderboard: Keeps track of the top performers in the server.
- Node.js
- A Discord account
- Administrator rights to add bots to a Discord server
-
Clone the repository:
git clone https://github.com/yourusername/discord-ctf-bot.git cd discord-ctf-bot
-
Install the required dependencies:
npm install
-
Create a
.env
file in the root directory and add your bot's token:DISCORD_TOKEN=your-discord-bot-token
-
Start the bot:
node index.js
!ctfstart
- Start a CTF challenge.!ctfsubmit <answer>
- Submit your answer for the current challenge.!ctfscore
- Check your current score.
Make sure the bot has the following permissions in your Discord server:
- Read Messages
- Send Messages
- Read Message History
Contributions are welcome! Feel free to open an issue or submit a pull request with any improvements.
This project is licensed under the MIT License - see the LICENSE file for details.