项目作者: made-by-traxam

项目描述 :
A Discord bot that can show the status of your minecraft server
高级语言: Java
项目地址: git://github.com/made-by-traxam/minecraft-server-status.git
创建时间: 2021-01-03T22:51:03Z
项目社区:https://github.com/made-by-traxam/minecraft-server-status

开源协议:MIT License

下载


MinecraftServerStatus

MinecraftServerStatus is a Discord bot that can show the online status of your Minecraft server.

Table of Contents

File structure

Configuration

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.

Development notes

  • tested with Java 8
  • run gradle run in the root directory to run the bot
  • you can put your environment variables into a .env file

Deployment

I am using dokku to deploy the bot but Heroku should work too.

  1. Create a dokku app:
    1. # on the dokku server
    2. $ dokku apps:create minecraft-server-status
  2. Configure process scaling:
    1. # on the dokku server
    2. $ dokku ps:scale web=0 worker=1
  3. Configure required environment variables:
    1. # on the dokku server
    2. # do the following for each environment variable
    3. $ dokku config:set DISCORD_TOKEN=y0ur_d15c0rd_b0t_t0k3n
  4. Add dokku remote:
    1. # on your local machine, inside the repo
    2. $ git remote add dokku dokku@your.dokku.host:minecraft-server-status
  5. Deploy:
    1. # on your local machine, inside the repo
    2. $ git push dokku

License

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.