A Discord bot that can show the status of your minecraft server
MinecraftServerStatus is a Discord bot that can show the online status of your Minecraft server.
MCServerPing/
contains a modified version of @lucaazilim ‘s minecraft-server-ping.src/
contains the code for the Discord bot.You’ll need to set the following environment variables to run the bot. Use a .env
file in development environments.
Variable name | Description |
---|---|
DISCORD_TOKEN |
The Discord bot token you want to use for your bot. Take a look at this guide. |
OWNER_ID |
The user ID of the bot owners Discord account. |
SUPPORT_SERVER |
A Discord invitation URL to the bots support server. |
SUPPORT_EMAIL |
An email address to be used for contacting the owner of the bot. |
gradle run
in the root directory to run the bot.env
fileI am using dokku to deploy the bot but Heroku should work too.
# on the dokku server
$ dokku apps:create minecraft-server-status
# on the dokku server
$ dokku ps:scale web=0 worker=1
# on the dokku server
# do the following for each environment variable
$ dokku config:set DISCORD_TOKEN=y0ur_d15c0rd_b0t_t0k3n
# on your local machine, inside the repo
$ git remote add dokku dokku@your.dokku.host:minecraft-server-status
# on your local machine, inside the repo
$ git push dokku
The code inside MCServerPing/
is copyrighted by @jamietech and used
with the license contained in the MCServerPing/LICENSE
file.
The rest of the code is available with an MIT License.