Creating AI Discord Bots with NeurochainAI

With the power of NeurochainAI, you can create a smart, responsive AI bot for Discord that can interact seamlessly with users in a designated channel. Here’s how you can set it up step by step.

Interactive Guide

Step 1: Access BotGhost and Log in with Discord

  1. Head over to botghost.com and log in with your Discord account.

  2. Authorize the necessary permissions for BotGhost to access your Discord server.

Step 2: Create a Discord Application

  1. Go to the Discord Developer Portal and click New Application to create your bot.

  2. Give your bot a name and click Create.

Step 3: Configure Bot Settings

  1. In the left sidebar of your newly created application, click on the Bot tab.

  2. Toggle the following options:

    • Presence Intent

    • Server Members Intent

    • Message Content Intent

  3. Scroll down and activate Administrator permissions for your bot. This ensures the bot has full access to the server.

Step 4: Reset and Copy the Bot Token

  1. Scroll to the Token section and click Reset Token to generate a new token.

  2. Copy this token, as you’ll need it for the next step.

Step 5: Paste the Token into BotGhost

  1. Return to BotGhost, and in the setup process, there will be a field for the Discord Bot Token.

  2. Paste the token you copied from the Discord Developer Portal into this field.

Step 6: Create a Custom Event

  1. In BotGhost, go to the Custom Events module.

  2. Click Custom Event Builder to create a new event.

  3. Import your custom AI event by adding the following code: (Insert the code snippet for your custom AI event here)

Step 7: Set Up API Requests

  1. Navigate to the API Request module within BotGhost.

  2. Click Request Builder to create a new API request.

  3. 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.

Step 8: Assign the Bot to a Specific Channel

  1. Access the Channel Condition module in BotGhost.

  2. 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.

Step 9: You're All Set!

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.

Last updated