Skip to content

Installation

Arona needs Node.js and a package manager. The CLI creates a working bot from a template.

  • Node.js ^22.18.0, ^24.11.0, or >=26.0.0.
  • pnpm, npm, yarn, or bun.
  • A Discord application, a Slack app, or both. The next two pages create them.

Run the scaffolding CLI:

Terminal window
pnpm create arona-app my-bot

The CLI asks three questions:

  1. Project name. It must not exist yet.
  2. Template.
  3. Package manager. The detected manager is marked.

Templates:

  • default: a Discord bot with one command and a telemetry layer.
  • counter: the smallest bot, one slash command and one button.
  • simple: selects, modals, and form fields.
  • rick-and-morty: an API-backed command with a character browser.
  • slack: a Slack bot with an interactive Block Kit message.
  • serverless: HTTP interactions for a serverless runtime.
  • alchemy: a Discord Worker deployed with Alchemy.

Then install and start:

Terminal window
cd my-bot
pnpm install
pnpm dev

pnpm dev builds with Vite+ and watches the source.

The bot reads secrets from .env in the project root. Copy the included .env.example and fill it in.

Discord:

  • DISCORD_APP_TOKEN: the bot token.
  • DISCORD_APP_ID: the application id.
  • DISCORD_DEV_GUILD_ID: optional. Commands register in this guild at once. Leave it empty to register globally, which can take up to an hour.

Slack:

  • SLACK_BOT_TOKEN: the bot token, starts with xoxb-.
  • SLACK_APP_TOKEN: the app-level token for Socket Mode, starts with xapp-.
  • SLACK_PORT: the local port for the Slack receiver. Defaults to 3000.

A scaffolded app is small:

my-bot/
.env
package.json
tsconfig.json
vite.config.ts
src/
counter.ts the component
index.ts the client and the command

The default template splits the component into counter.ts and keeps the client in index.ts. Larger templates split commands, queries, and components into folders.