Skip to content

A bot to help seamlessly open and close a Minecraft server remotely.

Notifications You must be signed in to change notification settings

PSYmoom/MinecraftBot

Repository files navigation

MinecraftBot for Discord Servers

A Discord bot developed using Discord.js to help seamlessly open and close a Minecraft server remotely using Discord servers. Server members can request for the host's IP and server population. Admin privileges can be set up using Discord roles.

Usage

  • !mcstart : Remotely start the Minecraft server.
  • !mcstop : Remotely stop the Minecraft server.
  • !mcip : Request the public IP of the host of Minecraft server.
  • !mccommand <command> : Remotely send a command to the server.
  • !mcstatus : Check the status of the Minecraft server.
  • !mconline : Check who are playing currently on the Minecraft server.
  • !mchelp : Display all possible commands.

Installation guide

  1. Install Node.js and discord.js

  2. Set up a Discord bot application

  3. Add the bot to servers

  4. Download all of the files in this repository and extract them in the Discord Bot folder.

  5. Move server_start.bat to the folder containing the Minecraft server.

  6. Change bot_secret_token in MinecraftBot.js to match your Discord Bot's secret token.

  7. Change MC_SERVER_START_SCRIPT in MinecraftBot.js to match the location of your Minecraft server.

  8. Change admin in MinecraftBot.js to match the role of admins in your server.

  9. Change the location in server_start.bat to match the location of your Minecraft server.

  10. (Optional) Change the minimum and maximum RAM allocated in server_start.bat to a value of your choice.

  11. The set up is complete! Use node MinecraftBot.js from the Discord Bot's location to start the bot.

  12. (Optional) Alternatively, you can set up the server to turn on during startup.

    1. Open Run and enter shell:startup.

    2. Move MinecraftBotStartUp.bat to the folder that opens up.

    3. Change the location in MinecraftBotStartUp.bat to match the location of your Discord Bot.

About

A bot to help seamlessly open and close a Minecraft server remotely.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published