Skip to content

Specialized discord bot for a minecraft server (for a small community).

Notifications You must be signed in to change notification settings

Luj8n/mc_discord_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A discord bot for a minecraft server, which does 2 things:

  • Checks the status of the server (online or offline) and updates a discord channel's name accordingly (usually it's a locked voice channel).
  • Adds a 'verify' command (sends an informational message about the command in a dedicated discord channel) which allows users to add their own minecraft username to the whitelist of the server (can only be done once).

To build/run it, it needs OpenSSL:


To run it:

  • Create a .env file with these values:
DISCORD_TOKEN=[token of the discord bot]
SERVER_ADDRESS=[server address of the minecraft server]
DISCORD_STATUS_CHANNEL_ID=[the (voice) channel id]
DISCORD_VERIFY_CHANNEL_ID=[the text channel id]
RCON_PASSWORD=[rcon password of the minecraft server]
  • Start the bot
cargo run --release

Note

  • For the whitelisting functionality, RCON has to be enabled in the server.properties

About

Specialized discord bot for a minecraft server (for a small community).

Topics

Resources

Stars

Watchers

Forks

Languages