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:

  • globals.d.ts
  • tsconfig.json
  • package.json
  • .env <- add your token here
  • Directorysrc
    • 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

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.

npm run build
npm run start