agentskit.js
Examples

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

  1. Create a Discord application at discord.com/developers/applications.
  2. Copy Public Key (General Information) and bot Token (Bot tab).
  3. 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

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page