Discord Bot
Reference Discord bot wrapping createChatTrigger from @agentskit/runtime. Verifies inbound interactions with Ed25519 public key. No discord.js dependency.
Driver-light Discord bot using Discord's Interactions HTTP endpoint. No gateway, no discord.js. Verifies inbound interactions with the application's Ed25519 public key.
For richer setups (presence, voice, gateway events), wrap discord.js β this template covers the slash-command + message-component path.
#Setup
- Create a Discord application at discord.com/developers/applications.
- Copy Public Key (General Information) and bot Token (Bot tab).
- Set Interactions Endpoint URL to
https://<your-host>/discord/interactions.
export DISCORD_BOT_TOKEN=...
export DISCORD_PUBLIC_KEY=<hex>
pnpm --filter @agentskit/example-discord-bot dev#Related
Explore nearby
- PeerExamples
Interactive demos. For copy-paste code, see Recipes.
- PeerBasic Chat
The simplest use case β streaming AI conversation with auto-scroll, stop button, and keyboard handling. All in 10 lines with AgentsKit.
- PeerTool Use
AI assistants that call functions β weather, search, DB queries. Tool calls render as expandable cards.