/source-servers-monitor-discord

source-servers-monitor-discord

Primary LanguagePythonMIT LicenseMIT

source-servers-monitor-discord

source-servers-monitor-discord

What does this do?

This is a discord bot that counts number of connected players/map played on your source servers. It also can count a total of players.

How does this look like on discord

This is an image

Ways of working

  1. For every individual source server you have
  2. Counting a total of players across all servers you have

How to configure the bot

Configuration of settings.json

Grab your bot token from discord developers (https://discord.com/developers/applications) and put it here

Configuration of servers.cfg

Here you can put your server's DNS/IP or all your server's if you want the bot to count a total of players No comments allowed, nothing else than IPs/DNS separated by a new line.

Installation of dependencies

git clone https://github.com/xSL0W/source-servers-monitor-discord
cd source-servers-monitor-discord
apt install python3 python3-pip
pip3 install -r requirements.txt
python3 main.py

License

MIT License
  
Copyright (c) 2022 - Stan '(xSLOW)' Valentin-Alexandru 
  
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
 
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
   
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.