GithubHelp home page GithubHelp logo

davenads / discord-svs-leaderboard-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 84 KB

Leaderboard system for managing the SvS League in Diablo Dueling Leagues

License: MIT License

JavaScript 100.00%

discord-svs-leaderboard-bot's Introduction

Discord-SvS-Leaderboard-Bot

Leaderboard system for managing the SvS League in Diablo Dueling Leagues.

Table of Contents

Introduction

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.

Features

  • User management
  • Challenge management
  • Automatic leaderboard updates
  • Persistent storage with SQLite

Installation

Prerequisites

  • Node.js (v14.0.0 or higher)
  • npm (Node Package Manager)
  • A Discord bot token
  • A Google Cloud Service Account for authentication (optional)

Steps

  1. Clone the repository:

    git clone https://github.com/Davenads/Discord-SvS-Leaderboard-Bot.git
    cd Discord-SvS-Leaderboard-Bot
  2. Install dependencies:

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

    DISCORD_TOKEN=your_discord_token
  4. Run the bot:

    node index.js

Usage

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.

Commands

  • !adduser: Add a new user to the leaderboard.
  • !challenge: Challenge another user.
  • !reportwin: Report a win against another user.
  • !leaderboard: Display the current leaderboard.

Configuration

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.

Contributing

We welcome contributions! Please fork the repository and submit a pull request.

Steps to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Create a new pull request.

License

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

discord-svs-leaderboard-bot's People

Contributors

davenads avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.