Skip to content

kpres12/discordbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Discord CTF Bot

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.

Features

  • 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.

Getting Started

Prerequisites

  • Node.js
  • A Discord account
  • Administrator rights to add bots to a Discord server

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/discord-ctf-bot.git
    cd discord-ctf-bot
  2. Install the required dependencies:

    npm install
  3. Create a .env file in the root directory and add your bot's token:

    DISCORD_TOKEN=your-discord-bot-token
  4. Start the bot:

    node index.js

Usage

  • !ctfstart - Start a CTF challenge.
  • !ctfsubmit <answer> - Submit your answer for the current challenge.
  • !ctfscore - Check your current score.

Permissions

Make sure the bot has the following permissions in your Discord server:

  • Read Messages
  • Send Messages
  • Read Message History

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request with any improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Building a discord bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published