This is a simple Discord bot written in JavaScript using the Discord.js library. The bot includes features like quizzes, points tracking, leaderboards, and random quotes.
- Quiz Command: Start a quiz and earn points for correct answers.
- Points Command: Check your current points.
- Leaderboard Command: View the top users with the highest points.
- Clear Command: Clear the points leaderboard (restricted to specific users).
- Quote Command: Get a random inspirational quote.
-
Clone the repository:
git clone https://github.com/wickstudio/discord-quiz-bot.git
-
Install dependencies:
npm install
-
Configure the bot:
- Create a
config.json
file based on the providedconfig.example.json
. - Add your Discord bot token and any other configurations.
- Create a
-
Set up the database:
- The bot uses SQLite, and the database is stored in
database.sqlite
. - Ensure you have SQLite installed on your machine.
npm install sqlite3
- The bot uses SQLite, and the database is stored in
-
Run the bot:
npm start
- Run the bot and invite it to your Discord server.
- Use the provided commands (
!quiz
,!points
,!leaderboard
,!clear
,!quote
) to interact with the bot.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.
This project is licensed under the MIT License.