Skip to content

Discord Bot that uses OpenTriviaDB for a fun quiz. Slash commands to warn users

License

Notifications You must be signed in to change notification settings

Mudden88/mudbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MudBot

MudBot is a Discord QuizBot that uses OpenTriviaDB to fetch questions. It is built with discord.js and offers fun quiz questions for your Discord server.

Available Commands

/warn

  • /warn add Warns a user and stores the warning.
  • /warn check Check if user is warned
  • /warn remove Remove all warnings for a user

!quiz

Starts a quiz and sends a question to the channel. Users can answer the question by clicking the "Answer" button and entering their answer in a modal.

!leaderboard

Displays the current leaderboard with the top players and their scores.

Installation

Follow these steps to install and run MudBot:

  1. Clone this repository:

    git clone https://github.com/Mudden88/MudBot.git
  2. Navigate to the project directory:

    cd MudBot/mudbot
  3. Install the necessary dependencies:

    npm install
  4. Create a .env file in the root directory and add Discordyour Bot Token:

    TOKEN=your-discord-bot-token
    
  5. Create a warning.json file with and place it in /commands

    {}
    
  6. Start the bot:

    node index.js

Contributing

If you would like to contribute to MudBot, please follow these steps:

  1. Fork this repository.
  2. Create a new branch for your feature (git checkout -b feature/new-feature).
  3. Make your changes and commit them (git commit -m 'Add new feature').
  4. Push your changes to the branch (git push origin feature/new-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

Discord Bot that uses OpenTriviaDB for a fun quiz. Slash commands to warn users

Resources

License

Stars

Watchers

Forks

Packages

No packages published