Hello, world! This is Discord Bot is primarily used for admin purposes, specifically for managing a Minecraft server.
- /start - Allows anyone on your Discord server to start it.
- /stop - Stops your Minecraft server.
- /world (set/add/remove/list) - Manages world information and lets the admin switch the world.
- /server (setup/select/remove) - Manages server information and lets the admin switch the server.
- /mod (add/remove/list) - Manages mods/plugins on the server and lets the admin add/remove mods/plugins.
- Modpack import
- Better configurations
- Docker Support
- Clone the repo
$ git clone https://github.com/Nat3z/mc-discord-bot.git
- Install bun
$ npm install -g bun
- Install dependencies
$ bun install
- Copy the .env.example in the parent directory and rename to .env.
- Enable Discord Developer Mode Guide
- Go to the Developer Portal and create a new application.
- Go to the "Bot" section of your app and create a new bot.
- Click "Reset Token" and copy paste the token to the .env file.
- Go to your Discord Server of choice and right click the server on the sidebar. Click "Copy Server ID" and paste into the "GUILD_ID" field.
- Go to the main channel where the bot will operate and right click the channel. Click "Copy Channel ID" and paste into the "GENERAL_CHANNEL_ID" field in .env
- Right Click on your name and click "Copy User ID." Paste that into the "ADMIN_ID" field in .env
- Select a number for how long you want it to take before the server shuts down if no one is online and insert that into the "MINUTES_BEFORE_SHUTDOWN_INACTIVE" field in .env
- Run this command in the parent directory to start the Discord Bot.
$ bun run app.ts
- Profit!
THIS DISCORD BOT IS STILL IN DEVELOPMENT. MANY FEATURES WILL CHANGE AND INITIAL SETUP WILL SIMPLIFY.