Basic bot that utilises python-a2s to display the playercount of servers running source games (gmod, counter strike, tf2, etc. . .)
Creates a message that will update to display server name, player count, and map.
Usage: %infoMessage address:port
Creates a category that will display the server's current playercount and have a custom name.
Usage: %infoCategory address:port custom name
When this command is sent in a text channel, the topic of the channel will display the playercount and server name.
Usage %infoTopic address:port
By putting a server's address in config.py (generated by install.sh) the bot will display it's player count in its status.
By using %markChannel an admin can attach a server's ip to a discord channel so that typing %server in that channel will send a message displayer the server's info.
Usage: %markChannel address:port
This has only been tested on ubuntu and raspberry pi OS, though it should work for all debian based distributions that have apt (and systemd for running on startup).
This install script requires that you already have a bot registered with discord and have access to the bot token.
You can make a bot/access its token at https://discord.com/developers/applications
Clone the source code & run the install script.
git clone https://github.com/Scott-McKool/playercount_bot_source.git
cd playercount_bot_source/
./install.sh