Installation
Lunibee is designed to be used with the Bun runtime.
Prerequisites
Section titled “Prerequisites”Ensure you have Bun installed on your machine (v1.4.0 or later):
bun --versionIf you need to install Bun:
# macOS and Linuxcurl -fsSL https://bun.sh/install | bash
# Windows (PowerShell)powershell -c "irm bun.sh/install.ps1 | iex"Starting a new project
Section titled “Starting a new project”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.
bunx @lunibee/cli init my-botcd my-botbun installAdding Lunibee
Section titled “Adding Lunibee”Inside your project directory, add lunibee:
bun add lunibeeTypeScript Configuration
Section titled “TypeScript Configuration”Lunibee requires modern TypeScript settings. Create or update your tsconfig.json:
{ "compilerOptions": { "target": "ESNext", "module": "ESNext", "moduleResolution": "Bundler", "strict": true, "skipLibCheck": true, "types": ["bun"] }}Modular Installation (Optional)
Section titled “Modular Installation (Optional)”If you only need specific packages (for example, just the REST client or builders for edge serverless functions):
bun add @lunibee/rest @lunibee/builders