Skip to content

Python script to updates activity status on discord bot and displays how many players are connect to your rust server from rest api

License

Notifications You must be signed in to change notification settings

kennethrisa/discord-rustserverstatus-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Rust discord bot that displayes online players

Discord-bot

Updates activity status on discord bot and displays how many players are connect to your rust server from rest api

Written in Python and requires version 3.8^ else you will get errors.

  • Support rust-servers.info
  • Support rust-servers.net
  • Bot update status every 3 minutes

Configuration

config.ini

[BOT]
# Bot token and not client secret.
token = <your token here>

# 1 = rust-servers.info
# 2 = rust-servers.net
apiSite = 2

# example:
# rust-servers.info: https://api.rust-servers.info/status/106
# rust-servers.net:  https://rust-servers.net/api/?object=servers&element=detail&key={ServerKey}
apiUrl = https://rust-servers.net/api/?object=servers&element=detail&key=

Installation:

Download it as zip or use:
git clone https://github.com/kennethrisa/discord-rustserverstatus-python.git
run command to install dependencies:
pip install -r requirements.txt

edit config.ini file with correct parameters

Before you start the bot, I assumes that you know have to created a discord bot and invited it to your server.

Start the bot:

python app.py or python3 app.py

About

Python script to updates activity status on discord bot and displays how many players are connect to your rust server from rest api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages