This is a supplementary guide to the Notifications Guide

Create a Discord Server or Bot by following the instructions below.


Create a Discord Server

1. Click the + icon at the bottom of the discord server list on the left side of the discord window.

2. Next, click the 'Create Server' button

3. Name your server and create it


Create a Discord Bot


1. Visit this link to start the creation process https://discordapp.com/developers/applications/me

2. Click on the 'New App' button.

3. Give the app a name, it is the name that will be the bot's name in your discord, after creation.

4. Optionally, you can create a description and give the app (bot) an icon to use, this is where those two items are added, when you are finished, click 'Create App'.

5. Scroll down the page and find the 'Create a Bot User' button, you will need to add a bot user.

6. Once the bot user is created, click on the 'Click to Reveal' link beside Token.

7. Save this bot token as it is the token needed for the discord_bot_token setting in the settings.properties file for PTNotifications; and optionally, if not using notifications, it is also for the discord.bot_token_1 setting in the ProfitTrailer application.properties file.

8. Visit this link to invite your bot to your discord server. https://discordapp.com/oauth2/authorize?&client_id=YOUR_CLIENT_ID_HERE&scope=bot&permissions=0

Note: You will need to replace YOUR_CLIENT_ID_HERE in the link with your bot's Client ID, which can be found at the top of the bot app page. If this is confusing, simply open the link in a new browser tab or window and edit in the address bar to include your Client ID, then press enter to follow the corrected link.

9. After adding your Client ID to the link and following it, you should see a screen with a similar image to the below.

10. Now select your server in the dropdown, then click “Authorize”.

11. Once your bot is invited to your discord server, you will need to enter the appropriate information into the settings.properties file for PTNotifications.

  • discord_bot_token = this is the bot token mentioned above in steps 6 and 7.
  • discord_channel_id = this is the numeric channel id for the discord channel in which your bot will send messages.

12. To find the numeric channel id for your channel, enable developer mode on discord by clicking the settings cog beside your username at the lower left hand side of the discord app.

13. Click on 'Appearance' and find developer mode and switch it on.

14. Right click the channel name and click on 'Copy ID'.

Notes:

  1. This is only an example, you will use the channel on YOUR discord server to which you want the bot to send messages.
  2. In the ProfitTrailer application.properties file, discord.chat_1 is the actual channel name, NOT the numeric channel ID described above for PTNotifications (PRO)
  • discord.txt
  • Last modified: 6 weeks ago
  • by sgtbatten