Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

Latest commit

 

History

History
162 lines (79 loc) · 3.79 KB

OLD-README.md

File metadata and controls

162 lines (79 loc) · 3.79 KB

minecraft-discord-verification

A discord bot and a minecraft skript to link your minecraft server's players discord accounts

Instalation

  1. 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.

Configuration (discord bot)

The configuration is in the config.json file. Change the values however you like.

Config Explained

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

how to get it

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 !

Now most of stuff will be messages. If you are fine with the defaults, leave them here

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.

THE END OF THE BOT'S CONFIG.

  1. 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.

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

..and that's it!

Restart everything and try this out!

  1. Go to your discord server and type !verify (or the command and the prefix you choosen)
  2. Copy the ID bot sent to you
  3. Go to your minecraft server and type /discord ID If works, congratz! You've successfully set up minecraft-discord-verification.