Skip to main content
Build a Discord bot with tools and persistent memory.
1

Create the bot

  1. Go to the Discord Developer Portal
  2. Click New Application and name it
  3. Go to Bot and click Add Bot
  4. Enable MESSAGE_CONTENT under Privileged Gateway Intents
  5. Copy the bot token
  6. Use the OAuth2 URL Generator to invite the bot (select bot scope with Send Messages and Read Message History)
2

Create the agent

discord_bot.py
3

Install dependencies

4

Set environment variables

5

Run

Mention the bot or send a DM to start chatting.
See Discord reference for all configuration options.