-
Notifications
You must be signed in to change notification settings - Fork 0
How to get all required data for settings
Pavel edited this page Feb 16, 2022
·
12 revisions
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
andToken
(will be put into settings.json) - Create CCP app on their web site and remember
Client ID
andSecret Key
(will be put into settings.json)
Read below for the detailed explanation.
- 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.
-
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
ordomain
with backward/discordcallback
- Example is
http://example.com/discordcallback
orhttp://1.1.1.1:5000/discordcallback
- Example is
-
Go to Bot page and remember Token value will be put into settings.json
-
Enable all intents
-
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
. ReplaceYOUR_BOT_CLIENT_ID
by your Discord appClient 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.
-
IMPORTANT! Make sure bot on top of the common member roles in the
- 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 externaladdress/port/domain
you will use - Remember
Client ID
andSecret Key
from apps main page (will be put into settings.json)