Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thatsinewave/wgpinger-bot
A discord bot that uses Wargaming's API to check the status of each server while also checking the ping locally
https://github.com/thatsinewave/wgpinger-bot
community discord-api discord-bot discord-py good-first-contribution good-first-issue good-first-pr good-first-project mit-license open-source ping pinger prototype python status-check thatsinewave wargaming wargaming-api world-of-tanks world-of-tanks-bot
Last synced: 3 days ago
JSON representation
A discord bot that uses Wargaming's API to check the status of each server while also checking the ping locally
- Host: GitHub
- URL: https://github.com/thatsinewave/wgpinger-bot
- Owner: ThatSINEWAVE
- License: mit
- Created: 2024-03-08T17:22:33.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T12:04:35.000Z (6 months ago)
- Last Synced: 2024-05-21T13:29:01.449Z (6 months ago)
- Topics: community, discord-api, discord-bot, discord-py, good-first-contribution, good-first-issue, good-first-pr, good-first-project, mit-license, open-source, ping, pinger, prototype, python, status-check, thatsinewave, wargaming, wargaming-api, world-of-tanks, world-of-tanks-bot
- Language: Python
- Homepage: https://github.com/ThatSINEWAVE/WGPinger-Bot
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# 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.
# [Join my discord server](https://discord.gg/2nHHHBWNDw)
## Installation
1. **Clone the repository:**
```bash
git clone https://github.com/your-username/WGPinger-Bot.git
```2. **Install the required Python packages:**
```bash
pip install discord.py discord-py-slash-command pythonping requests
```3. **Create a Discord bot and obtain the bot token.**
Replace the placeholder token in main.py with your bot token:
```python
bot.run('YOUR_BOT_TOKEN')
```4. **Run the bot:**
```bash
python main.py
```## Commands
1. **/wgstats** - Fetches Wargaming server statistics for a specific region.
### Usage:
```bash
/wgstats [region]
```region (optional): The server region (e.g., "EU", "NA", "ASIA"). Defaults to "EU" if not specified.
2. **/checkping** - Checks the ping for a specific game server or all servers.
### Usage:
```bash
/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.
## ☕ [Support my work on Ko-Fi](https://ko-fi.com/thatsinewave)
## License
This project is licensed under the MIT License - see the LICENSE file for details.