Discord Loader
The discord
loader is a HelperAI loader that allows you to load posts data form a discrod forum channel into the HelperAI Knowledge Base. Each post in the channel will be converted into a HelperAI Knowledge Base record.
Loader Properties
Property | Type | Description |
---|---|---|
channelId | string | The discord forum channel ID to load data from. |
discordToken | string | Discord bot token. |
Example
Before commencing this example operation, please ensure that you already have an existing Discord forum channel inside a a Discord server that can be managed by you.
Enabling the Developer Mode
- Click on the "User settings" button located at the bottom left of Discord.
- In the side menu, select "Advanced."
- Enable "Developer Mode" by checking the box.
Get Discord Forum Channel ID
- Make sure you've already enabled developer mode.
- Return to your Discord Server page and locate your forum channel. Right-click on this channel, and you will see the option "Copy Channel ID."
Create a Discord Application and Get Discord Token
- Goto the discord developer portal: https://discord.com/developers/applications
- Click "New Application"
- Enter the name of your application, for example: "HelperAI Loader"
- Click the "Create" button. Your app will be created and you will be redirected to the app's page
- In the app's page, click the "OAuth2" menu item on the left-side.
- Copy the "Client ID", you will need this in the next step.
- Use you browser to navigate to the link:
https://discord.com/api/oauth2/authorize?client_id={YOUR_CLIENT_ID}&permissions=1024&scope=bot%20applications.commands
. Make sure you replace the{YOUR_CLIENT_ID}
with you client ID. - Select the server where your forum channel located at.
- Click "Continue" button. The application will be integrated into the selected server.
- Return to the application page and click the "Bot" menu item:
- If you didn't see a bot token string, click on the "Reset Token" button to generate one.
Now that you've collect the Channel ID and bot token, use them as the configuration property of knowledge base.
Updated about 1 year ago