WGPinger Bot Code
Simple bot that provides server statistics for Wargaming servers.
Brought to you by:
sinewave
| File | Date | Author | Commit |
|---|---|---|---|
| .github | 2024-03-15 |
|
[3a1b32] Update FUNDING.yml |
| LICENSE | 2024-03-08 |
|
[097ad9] Initial commit |
| README.md | 2024-04-06 |
|
[43110d] Updated README.md |
| clusters.json | 2024-03-11 |
|
[cffc6e] Created clusters.json |
| main.py | 2024-03-11 |
|
[f3d8c8] Create main.py |
| requirements.txt | 2024-04-03 |
|
[65b30c] Created requirements.txt |
git clone https://github.com/your-username/WGPinger-Bot.git
pip install discord.py discord-py-slash-command pythonping requests
Replace the placeholder token in main.py with your bot token:
bot.run('YOUR_BOT_TOKEN')
python main.py
/wgstats [region]
region (optional): The server region (e.g., "EU", "NA", "ASIA"). Defaults to "EU" if not specified.
/checkping [server]
server: The server API name. Use "ALL" to check ping for all servers.
clusters.json
This JSON file contains information about game servers, including their names, addresses
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.
This project is licensed under the MIT License - see the LICENSE file for details.