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.
/warn add
Warns a user and stores the warning./warn check
Check if user is warned/warn remove
Remove all warnings for a user
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.
Displays the current leaderboard with the top players and their scores.
Follow these steps to install and run MudBot:
-
Clone this repository:
git clone https://github.com/Mudden88/MudBot.git
-
Navigate to the project directory:
cd MudBot/mudbot
-
Install the necessary dependencies:
npm install
-
Create a .env file in the root directory and add Discordyour Bot Token:
TOKEN=your-discord-bot-token
-
Create a
warning.json
file with and place it in/commands
{}
-
Start the bot:
node index.js
If you would like to contribute to MudBot, please follow these steps:
- Fork this repository.
- Create a new branch for your feature (
git checkout -b feature/new-feature
). - Make your changes and commit them (
git commit -m 'Add new feature'
). - Push your changes to the branch (
git push origin feature/new-feature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.