Skip to content

Indev450/dione

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRB2Kart Dione - Discord bot

A Discord bot for displaying SRB2Kart server status, written using luvit

Installing

Install luvit if you don't have it already (refer to https://luvit.io/install.html)

Clone repository:

git clone --recursive https://github.com/Indev450/dione
cd dione

Install dependencies:

lit install SinisterRectus/discordia
lit install Bilal2453/discordia-interactions

Running

DISCORD_TOKEN=<your token> SRB2KART_ADDRESS=<ip:port of server> SRB2KART_PROTO=<protocol> luvit init.lua

Environment variables

DISCORD_TOKEN - required, bot token

DISCORD_CMDPREFIX - optional, will be added to all commands (for example, a bot for ring racers server might use DISCORD_CMDPREFIX="rr-", resulting into commands being /rr-players and /rr-gamemode)

SRB2KART_ADDRESS - optional, address of srb2kart server, which would be asked for info (format is host:port. host defaults to 127.0.0.1, port defaults to 5029)

SRB2KART_PROTO - optional, and defaults to srb2kart-16p (which is vanilla kart server). Other currently supported options are:

  • saturn-32p (not compatible with vanilla mostly only because of 2 bytes for player skin field),
  • saturn-126p (not vanilla compatible because 126 is more than MSCOMPAT_MAXPLAYERS, which is 32)
  • ringracers-16p (not sure if there are non-16p clients, so it is with 16p suffix for now)
  • blankart (blankart is in active dev, so support may or may not break occasionally :p)

SRB2KART_GAMEMODEFILE - optional, path to file which would be read to fetch server gamemodes. File should store each gamemode on new line. If this variable is not found, /gamemode command will not be available

SRB2KART_SEEDPLAYER - optional, don't count player with that name in status

About

SRB2Kart discord bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages