Skip to main content

Overview

This guide walks you through creating and configuring your AutoResponse bot on Discord.

Prerequisites

  • Node.js v16 or higher
  • A Discord account
  • Basic command line knowledge

Creating Your Discord Bot

1

Access Discord Developer Portal

Navigate to the Discord Developer Portal and sign in with your Discord account.
2

Create New Application

Click the New Application button in the top right corner.Give your application a name (e.g., “AutoResponse”) and accept Discord’s Terms of Service.
3

Navigate to Bot Section

In the left sidebar, click on Bot to access the bot configuration page.Click Add Bot to convert your application into a bot user.
4

Generate Bot Token

Under the Token section, click Reset Token to generate your bot token.
Copy this token immediately and store it securely. You won’t be able to see it again!Never share your bot token publicly or commit it to version control.
5

Configure Bot Intents

Scroll down to the Privileged Gateway Intents section and enable:
  • Presence Intent
  • Server Members Intent
  • Message Content Intent
These intents are required for AutoResponse to function properly.
Your bot must have these intents enabled to read message content and respond to users.

Inviting Your Bot to a Server

1

Navigate to OAuth2 Section

In the left sidebar of the Discord Developer Portal, click on OAuth2 > URL Generator.
2

Select Bot Scope

Under Scopes, check the following:
  • bot
  • applications.commands
3

Configure Bot Permissions

Under Bot Permissions, select the following permissions:
  • Read Messages/View Channels
  • Send Messages
  • Send Messages in Threads
  • Embed Links
  • Attach Files
  • Read Message History
  • Add Reactions
  • Use Slash Commands
The permission integer should be 534723951680 for all required permissions.
4

Copy and Use Invite URL

Copy the generated URL at the bottom of the page.Paste this URL into your browser and select the server you want to add the bot to.
You must have Manage Server permissions on the target server to add bots.

Initial Configuration

After setting up your bot on Discord, you need to configure your local environment:
  1. Create Environment File Create a .env file in your project root (see Environment Variables)
  2. Install Dependencies
    npm install
    
  3. Start the Bot
    npm start
    
  4. Verify Bot is Online Check your Discord server - your bot should now appear online!

Next Steps

Configure Permissions

Set up Discord permissions and user privacy controls

Environment Variables

Configure your bot’s environment variables

Database Setup

Understand the bot’s database structure

Commands

Learn about available slash commands

Build docs developers (and LLMs) love