Giter VIP home page Giter VIP logo

playercount_bot_source's Introduction

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

playercount_bot_source's People

Contributors

scott-mckool avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.