Skip to content

Quick Setup

ErdbeerbaerLP edited this page Jan 4, 2021 · 15 revisions

This short page tells you how to setup the discord bot.

1. Create your bot.

Open https://discord.com/developers/applications/ and click on "New Application".

Name it as you want and give it an App icon (this will be the default avatar image of the Bot). Then on the left side, click on "Bot" and then on the right, click "Add Bot".

The page should look like this now:

On this page, enable "Server Members Intent"

2. Add the bot to your discord server

Copy your client ID from the "General Information" tab and enter it on this page, then click the generated link below and select the server you want the bot in (you need Administrator permissions to add a bot!). The bot itself requires permissions to modify webhooks, send and read messages, manage roles and manage channels.

3. Enable developer mode in your discord app

Open Discord Settings, go to appearance and enable developer mode.

4. Configurate the server

On your server, install the mod and start the server once. Stop it again and open the config file.

Config locations:

  • Spigot: SERVER/plugins/DiscordIntegration/config.toml
  • Forge: SERVER/config/Discord-Integration.toml

In this file, set the value of botToken (found below [general]) to the your bot token, which you can copy from the bot page in 1.

Now go into your discord server and right click the channel, in which the bot should be working in. Click Copy ID

Then paste it into the config at the value of botChannel.

Now go to your server settings and open the "Roles" tab. Now right click and copy the ID of your Admin role. This will be used for admin commands. Make sure to not give the role to wrong people, or they can kick players or stop the server! In the config, scroll down to [commands] and paste the role ID into adminRoleIDs = [ "YourRoleIDHere" ]

Save the config now

5. Start the server and test it

After your server started up, it should look like one of theese (depending on your settings in [localization] and [webhook]!):

Clone this wiki locally