Installation
Arona needs Node.js and a package manager. The CLI creates a working bot from a template.
Requirements
Section titled “Requirements”- 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.
Create the app
Section titled “Create the app”Run the scaffolding CLI:
pnpm create arona-app my-botThe CLI asks three questions:
- Project name. It must not exist yet.
- Template.
- 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:
cd my-botpnpm installpnpm devpnpm dev builds with Vite+ and watches the source.
Environment variables
Section titled “Environment variables”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 withxoxb-.SLACK_APP_TOKEN: the app-level token for Socket Mode, starts withxapp-.SLACK_PORT: the local port for the Slack receiver. Defaults to3000.
Project layout
Section titled “Project layout”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 commandThe default template splits the component into counter.ts and keeps the
client in index.ts. Larger templates split commands, queries, and components
into folders.