A discord bot and a minecraft skript to link your minecraft server's players discord accounts
- Discord bot:
The bot is written in nodejs. That means you need a nodejs server to host it, but don't worry, if you don't want to buy it, i can show you how to get it for free
Guide on hosting the bot on your own nodejs server:
First, download the repository. Click
Extract it and get the bot
folder.
Upload it to your node server Open command line and make sure you are in the folder you uploaded
Type npm i
to install all the required packages
To run it, simply type npm start
. But for now, we need to configure it.
The configuration is in the config.json
file. Change the values however you like.
The config may be confusing, ask anything in the issues tab, or message me on discord (#1)
token
Your bot's token. Get it by creating an app at discord developers
Tutorial on creating an app on discord developers
prefix
the character before the verification command. For example !verify
. The prefix is !
botstatus
the bot's playing status
guild
your discord server's id
verifiedRoleName
Name of the role you want your players to be given after account linking
verifyCommand
The command you want your users to get their id's. For example, !verify
- the command is verify
and the prefix is !
instructionInfo
I'm just gonna leave the image here
idText
idTextCommand
embedColor
The color of the embed sidenav ( hex )
embedHeader
embedFooter
embedFooterImage
The image left to the footer (MUST be a direct image link)
embedAuthor
embedAuthorImage
The image left to the author (MUST be a direct image link)
webServerPort
The port adress the bot's webserver will listen to.
- Installation on the minecraft side
It's MUCH simpler than getting the bot running, so let's start
Download Skript and Reqn
Restart the server
Get the zip you downloaded before and get the discord.sk
file from the minecraft
folder.
Upload it to your minecraft server (plugins/Skript/scripts/)
Now edit the file to adjust the config.
{bot-url}
Your nodejs server's url (http://NODEJS-SERVER-ADRESS:WEBSERVER_PORT)
{successmessage}
success message when player links his discord account
{errormessage}
error message when player already linked his discord account
{invitemessage}
the message when player types /discord without parameters
Restart everything and try this out!
- Go to your discord server and type !verify (or the command and the prefix you choosen)
- Copy the ID bot sent to you
- Go to your minecraft server and type /discord ID If works, congratz! You've successfully set up minecraft-discord-verification.