Skip to content

Installation

Ricardo J Gonzalez edited this page Jan 17, 2021 · 2 revisions

Discord instructions

There are some steps you must performed regarding discord

Creating the bot

This may be more understandable using the explanation done by the JDA community, mainly because what you will read next, is what it's currently in there in my own words:

  1. You must go to https://discord.com/developers/applications/
  2. Create an application
  3. Name your application
  4. Save your changes
  5. Open the Bot tab
  6. Add bot and confirm

Add the bot to the server

This will be done by going to the following link: https://discord.com/api/oauth2/authorize?client_id=client_id&scope=bot. Replacing client_id with your actual client id

Get destination channel id

To be able that the bot knows which is the channel message that it must send the message, it's necessary to obtained the channel ID. This can be performed by following the steps described by this discord blog post. In summary the steps necessary for this, are the following

  • Open the Discord App
  • Enable developer mode. Found in the appearance settings
  • Right click the message channel you want the bot to send messages to.
  • Click on Copy ID

Installing the plugin

  1. Download the plugin jar
  2. Move the jar file to the plugins folder
  3. Modify the configuration file located at plugins/Discoords/config.yml, changing the token value with your bot token and the channel-id with your channel id.