Leaderboard system for managing the SvS League in Diablo Dueling Leagues.
This bot manages the leaderboard system for the SvS League in Diablo Dueling Leagues. It allows players to add users, create challenges, report wins, and more.
- User management
- Challenge management
- Automatic leaderboard updates
- Persistent storage with SQLite
- Node.js (v14.0.0 or higher)
- npm (Node Package Manager)
- A Discord bot token
- A Google Cloud Service Account for authentication (optional)
-
Clone the repository:
git clone https://github.com/Davenads/Discord-SvS-Leaderboard-Bot.git cd Discord-SvS-Leaderboard-Bot
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add your Discord bot token:DISCORD_TOKEN=your_discord_token
-
Run the bot:
node index.js
Once the bot is running, it will respond to specific commands within your Discord server. Ensure the bot has the necessary permissions to read and send messages in the channels you intend to use it in.
!adduser
: Add a new user to the leaderboard.!challenge
: Challenge another user.!reportwin
: Report a win against another user.!leaderboard
: Display the current leaderboard.
The bot uses a configuration file config.json
for various settings such as command prefixes and database file paths. Ensure you have the correct configuration before running the bot.
We welcome contributions! Please fork the repository and submit a pull request.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new pull request.
This project is licensed under the MIT License - see the LICENSE file for details.