Skip to content

Installation

Lunibee is designed to be used with the Bun runtime.

Ensure you have Bun installed on your machine (v1.4.0 or later):

Terminal window
bun --version

If you need to install Bun:

Terminal window
# macOS and Linux
curl -fsSL https://bun.sh/install | bash
# Windows (PowerShell)
powershell -c "irm bun.sh/install.ps1 | iex"

Scaffold a bot with the CLI: commands and events found at runtime under src/commands and src/events, and commands registered with Discord on every start.

Terminal window
bunx @lunibee/cli init my-bot
cd my-bot
bun install

Inside your project directory, add lunibee:

Terminal window
bun add lunibee

Lunibee requires modern TypeScript settings. Create or update your tsconfig.json:

{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"skipLibCheck": true,
"types": ["bun"]
}
}

If you only need specific packages (for example, just the REST client or builders for edge serverless functions):

Terminal window
bun add @lunibee/rest @lunibee/builders