Skip to content

Getting started

Installation

The fastest way to get started with lilybird is by using our template generator.

bun create @lilybird

Running your first bot

After running the command you should see a file structure somewhat like this:

your-bot
├── globals.d.ts
├── tsconfig.json
├── package.json
├── .env
└── src
└── index.ts

Adding your token

To add your bot token open your .env file and add the token after TOKEN=.

Starting your bot

npm run dev

Ready for production with TypeScript

If you are using TypeScript we highly recommend adding NODE_ENV="production to your .env file and if you are using node do the following.

Terminal window
npm run build
npm run start