Creating AI Discord Bots
Last updated
Last updated
Head over to botghost.com and log in with your Discord account.
Authorize the necessary permissions for BotGhost to access your Discord server.
Go to the Discord Developer Portal and click New Application to create your bot.
Give your bot a name and click Create.
In the left sidebar of your newly created application, click on the Bot tab.
Toggle the following options:
Presence Intent
Server Members Intent
Message Content Intent
Scroll down and activate Administrator permissions for your bot. This ensures the bot has full access to the server.
Scroll to the Token section and click Reset Token to generate a new token.
Copy this token, as you’ll need it for the next step.
Return to BotGhost, and in the setup process, there will be a field for the Discord Bot Token.
Paste the token you copied from the Discord Developer Portal into this field.
In BotGhost, go to the Custom Events module.
Click Custom Event Builder to create a new event.
Import your custom AI event by adding the following code: (Insert the code snippet for your custom AI event here)
Navigate to the API Request module within BotGhost.
Click Request Builder to create a new API request.
Go to the HTTP Headers tab and enter the following:
Key: Authorization
Value: Bearer <your NeurochainAI API key>
(replace <your NeurochainAI API key>
with your actual API key from NeurochainAI).
This links your Discord bot with NeurochainAI’s inference capabilities.
Access the Channel Condition module in BotGhost.
Paste the ID of the Discord channel where you want the bot to operate.
To find the channel ID, make sure you have developer mode enabled in Discord. Right-click the channel and select Copy ID.
Your bot is now ready to go! With the event you created, the bot will automatically respond to any messages sent in the designated channel, using NeurochainAI’s advanced inference capabilities.