Discord Bot Creation Guide

Step-by-step guide to create your first Discord AI bot with Friendify platform

Table of Contents

1. Discord Developer Portal Setup 2. Creating Discord Bot 3. Setting Bot Permissions 4. Bot Setup on Friendify 5. Inviting Bot to Server 6. Bot Configuration 7. Testing Your Bot 8. Troubleshooting
1

Discord Developer Portal Setup

First, you need to create an application in Discord Developer Portal.

  1. Sign in to Discord and go to Discord Developer Portal
  2. Click on "New Application" button
  3. Enter a name for your bot (e.g., "MyAIBot")
  4. Click "Create" button
Tip: Bot name can be changed later, so you can choose a simple name for now.
2

Creating Discord Bot

After creating the application, you need to configure the bot.

  1. Click on "Bot" tab in the left menu
  2. Click "Add Bot" button
  3. In the confirmation dialog, select "Yes, do it!"
  4. Customize the bot's username and avatar

Getting Bot Token

Bot token is your bot's credentials and will be needed in Friendify.

  1. In the "Token" section, click "Reset Token" button
  2. Complete the security verification
  3. Copy the displayed token and save it securely
Important: Never share your bot token with anyone! This token provides full control over your bot.
Token example: MTIzNDU2Nzg5MDEyMzQ1Njc4.GH3kL9.abcdefghijklmnopqrstuvwxyz1234567890
3

Setting Bot Permissions

You need to set the necessary permissions for your bot to work in Discord servers.

Privileged Gateway Intents

Enable the following options in the Bot tab:

Note: Without these permissions, the bot cannot respond to messages and provide full functionality.
4

Bot Setup on Friendify

Now register the token you got from Discord on the Friendify platform.

  1. Go to Friendify Dashboard
  2. Click "New Bot" button
  3. Enter a name for your bot
  4. Paste the token you copied from Discord
  5. Select a personality (default or custom)
  6. Click "Create Bot" button

Bot Settings

Options you can configure after creating the bot:

5

Inviting Bot to Server

Create an invite link to invite your bot to your Discord server.

  1. Go to "OAuth2" tab in Discord Developer Portal
  2. Select "URL Generator" sub-tab
  3. In Scopes section, check "bot" and "applications.commands"
  4. In Bot Permissions section, select the necessary permissions:
    • Send Messages
    • Read Message History
    • Use Slash Commands
    • Connect (for voice)
    • Speak (for voice)
    • Use Voice Activity
  5. Copy the generated URL and open it in your browser
  6. Select the server you want to add the bot to
  7. Click "Authorize" button
Success: Your bot should now be online and visible in your Discord server!
6

Bot Configuration

You can make additional configurations for your bot to work more effectively.

Personality Settings

You can customize your bot's personality in Friendify Dashboard:

Advanced Features

Voice Processing: Your bot can understand voice messages from voice channels and respond.
Contextual Memory: Bot remembers previous conversations and responds accordingly.
7

Testing Your Bot

Test to make sure your bot is working properly.

Basic Tests

  1. Type @YourBot hello to your bot in Discord server
  2. Test slash commands: /help
  3. Ask questions on different topics
  4. Test your bot in voice channel (if voice feature is enabled)

Features to Check

Example test messages: - Hello! How are you? - What's the weather like today? - Tell me a joke - Give me information about Python programming - Use /help command for help
8

Troubleshooting

Common problems and their solutions:

Bot Not Online

Bot Not Responding to Messages

Slash Commands Not Working

Voice Features Not Working

Still having issues: Contact us through our support page.