Scott-McKool / playercount_bot_source

A basic discord bot for displaying playercount and server information about source games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

playercount bot

Basic bot that utilises python-a2s to display the playercount of servers running source games (gmod, counter strike, tf2, etc. . .)

Features

Display server info in a message

Creates a message that will update to display server name, player count, and map.
Usage: %infoMessage address:port
image image

Display server info in a category

Creates a category that will display the server's current playercount and have a custom name.
Usage: %infoCategory address:port custom name
image image

Display server info in the topic of a channel

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
image image

Display player count in the bot's status

By putting a server's address in config.py (generated by install.sh) the bot will display it's player count in its status.
image image

Show server info when users type %server

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
image

Steps To Install

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

About

A basic discord bot for displaying playercount and server information about source games


Languages

Language:Python 88.1%Language:Shell 11.9%