

If you don't mind that anyone can invite your bot, then leave this option checked. Scroll down to Authorization Flow and uncheck the Public Bot option. Keep in mind that it will invalidate the existing one. If someone does gain access, you can hit the "Regenerate" button next to the copy button. Keep this token a secret! If anyone gets access to this token, they have access the bot account. You will need it when configuring the Discord bot. Go to the Discord Developer Portal and click the New Application button.Ĭlick the Copy button under the Token section and note it down. To allow your application to connect with the Discord API, you must create a new Discord application. To create your own, you can deploy a Vultr One-Click Minecraft installation or install it on your current server by following this guide.

It can do things such as digging and building, crafting, interacting with entities, inventory management, chat, and more. Mineflayer is a library that allows you to control Minecraft bots through a stable and high-level JavaScript API. Without further ado, let's get started! Brief Description of Discord.js, Mineflayer, and Node.jsĭiscord.js is a popular library used to easily create and control bots through the Discord API. You will be utilizing the Discord.js library, Mineflayer library, and Node.js runtime to create this application.
#MINECRAFT DISCORD HOW TO#
In this tutorial, you will be learning how to create a Minecraft bot that syncs messages from Discord to Minecraft and vice versa.
