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.
!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.
-
Download all of the files in this repository and extract them in the Discord Bot folder.
-
Move
server_start.bat
to the folder containing the Minecraft server. -
Change
bot_secret_token
in MinecraftBot.js to match your Discord Bot's secret token. -
Change
MC_SERVER_START_SCRIPT
in MinecraftBot.js to match the location of your Minecraft server. -
Change
admin
in MinecraftBot.js to match the role of admins in your server. -
Change the location in server_start.bat to match the location of your Minecraft server.
-
(Optional) Change the minimum and maximum RAM allocated in server_start.bat to a value of your choice.
-
The set up is complete! Use
node MinecraftBot.js
from the Discord Bot's location to start the bot. -
(Optional) Alternatively, you can set up the server to turn on during startup.
-
Open Run and enter
shell:startup
. -
Move MinecraftBotStartUp.bat to the folder that opens up.
-
Change the location in MinecraftBotStartUp.bat to match the location of your Discord Bot.
-