jxsl13 / TeeworldsDiscordBotGo

A discord bot that fetches the server infos of known whitelisted Teeworlds 0.7 servers. The requests are being sent just in time in order to not stress those servers periodically with payloads.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TeeworldsDiscordBotGo

A discord bot that caches current teeworlds server data in order to query for online players and stuff.

Install dependencies & build

go get -d
go build

Create .env file

touch .env

Add your discord application token to the .env file

DISCORD_TOKEN=<SECRET TOKEN>
DISCORD_ADMIN="jxsl13#5272"
DEFAULT_GAMETYPE_FILTER=zCatch

# how long to wait before saying that the server is not reachable
SERVER_RESPONSE_TIMEOUT_MS=500

Run the bot (the text file must exist, but can be empty)

./TeeworldsDiscordBotGo -f text_file_with_ips.txt

Show available commands

!help

About

A discord bot that fetches the server infos of known whitelisted Teeworlds 0.7 servers. The requests are being sent just in time in order to not stress those servers periodically with payloads.


Languages

Language:Go 100.0%