Skip to content

Simple Discord Bot for managing a Minecraft Server

License

Notifications You must be signed in to change notification settings

playnet-public/mc-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Bot for Discord

This is a small personal project to allow small-scale management of a Minecraft server via Discord. It also supports other games, right now including Valheim.

Features

  • Whitelist Management: Discord members can request to be added to the Minecraft whitelist. Once a member with the Approvers role confirms, they will be added.

  • Server Restarts: Discord members can request a server restart. The restart blocks until the server is empty. A member with the Approvers role can override.

  • Players: Discord members can request the current number and names of online players.

  • RCON Channel: A Discord channel can be converted into an RCON console.

Screenshots

Whitelist Command

Whitelist Command

Whitelist Interaction

Whitelist Interaction

Whitelist Result

Whitelist Result

Restart Command

Restart Command

Restart Interaction

Restart Interaction

Restart Result

Restart Result

Players Result

Players Result

Valheim Support

Valheim support is the first other mode added to the bot. It supports the same restart and player info command. Restarting happens by terminating the Kubernetes Pod the server runs in. Player Info gets fetched from the server via the Steam Query Protocol. Valheim only supports player count so far, no player names are returned.

Deployment

The bot can be deployed on Kubernetes. Simply edit the manifests in examples/ and then run:

kubectl apply --server-side -f examples/

It's recommended to build the bot yourself as the upstream image built on quay.io/kwiesmueller/mc-bot won't follow any stability guarantees and be updated on demand. Stay safe and make sure you know what you run.

Contributing

Should you want to try the bot yourself or even contribute, please go ahead. It won't receive any active support, but Github Issues are a good way to report issues. This is not intended as a full server management solution running across multiple guilds and servers. It's just a project from friends for friends.

If you want to do more with this, feel free to get in touch :-)

Thanks to

About

Simple Discord Bot for managing a Minecraft Server

Topics

Resources

License

Stars

Watchers

Forks