Skip to content

How to get all required data for settings

Pavel edited this page Feb 16, 2022 · 12 revisions

Introduction

This guide also covers one important thing: how to correctly bind your Discord, CCP app and Bot together. In short:

  • Create Discord group and remember its Guild Id (will be put into settings.json)
  • Create Discord bot on their web site, add it to your Discord group. Remember Client Id and Token (will be put into settings.json)
  • Create CCP app on their web site and remember Client ID and Secret Key (will be put into settings.json)

Read below for the detailed explanation.

Discord IDs

Channel and guild identifiers

  • Enable Developer Mode on Desktop Client: https://discordia.me/developer-mode
  • Right click on any channel or group icon and select Copy ID to copy the ID into clipboard. Then you can paste it into config.

Bot ID

  • Go to settings and create new application

  • Go to General Information page remember Client Secret and Client Id value will be put into settings.json

  • Add redirect on page based on your ip:port or domain with backward /discordcallback

    • Example is http://example.com/discordcallback or http://1.1.1.1:5000/discordcallback
  • Go to Bot page and remember Token value will be put into settings.json

  • Enable all intents 68747470733a2f2f6d656469612e646973636f72646170702e6e65742f6174746163686d656e74732f3433393333313839393633313037353332392f3737323339373037333339313238383334302f756e6b6e6f776e2e706e67

  • Add Discord Bot to you group using this link: https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_CLIENT_ID&permissions=8&scope=bot%20applications.commands. Replace YOUR_BOT_CLIENT_ID by your Discord app Client ID

    • IMPORTANT! Make sure bot on top of the common member roles in the Discord group role settings window. The order of roles in the Discord settings window is important! Role can only make changes to the roles which are positioned below it.

CCP IDs

Developer Application

  • Go to CCP website
  • Login with your account
  • Add new application
  • Select Authentication & API Access connection type
  • Select required ESI permissions. Note that it is adviced to select everything as these permissions don't expose anything on their own and just means that your app is allowed to work with them
  • Enter callback url identical to the external address in settings.json file like: http://127.0.0.1:3000/evecallback. You can do it later when you setup your bot instance and find out what external address/port/domain you will use
  • Remember Client ID and Secret Key from apps main page (will be put into settings.json)