Coder Social home page Coder Social logo

thatsinewave / wgpinger-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 28 KB

A discord bot that uses Wargaming's API to check the status of each server while also checking the ping locally

Home Page: https://github.com/ThatSINEWAVE/WGPinger-Bot

License: MIT License

Python 100.00%
discord-bot mit-license open-source pinger python wargaming-api good-first-issue good-first-pr good-first-project good-first-contribution

wgpinger-bot's Introduction

WGPinger - Server Monitoring Discord Bot

This Discord bot provides server statistics for Wargaming (WG) servers and allows users to check the ping for specific game servers. Additionally, it updates Discord channel names with real-time player counts and ping information.

Installation

  1. Clone the repository:
git clone https://github.com/your-username/WGPinger-Bot.git
  1. Install the required Python packages:
pip install discord.py discord-py-slash-command pythonping requests
  1. Create a Discord bot and obtain the bot token.

Replace the placeholder token in main.py with your bot token:

bot.run('YOUR_BOT_TOKEN')
  1. Run the bot:
python main.py

Commands

  1. /wgstats - Fetches Wargaming server statistics for a specific region.

Usage:

/wgstats [region]

region (optional): The server region (e.g., "EU", "NA", "ASIA"). Defaults to "EU" if not specified.

  1. /checkping - Checks the ping for a specific game server or all servers.

Usage:

/checkping [server]

server: The server API name. Use "ALL" to check ping for all servers.

Configuration

clusters.json

This JSON file contains information about game servers, including their names, addresses

Automatic Channel Updates

The bot automatically updates Discord channel names with real-time player counts and ping information. The channels are mapped in the channel_mapping dictionary in main.py.

License

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

wgpinger-bot's People

Contributors

dependabot[bot] avatar thatsinewave avatar

Stargazers

 avatar  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.