create a bot

scaffold a working YAEBAL bot in one command — pick a runtime and a few plugins, get a wired project.

scaffold

terminal
pnpm create yaebal my-bot
# or: npm create yaebal@latest my-bot  ·  bun create yaebal my-bot

On a terminal it asks for the project name, runtime (node / bun / deno), and plugins. In automation, pass flags instead — no prompts, no hangs:

terminal
# non-interactive (CI-friendly) — pass everything as flags:
pnpm create yaebal my-bot --runtime bun --plugins session,again

what you get

structure
my-bot/
  package.json        # scripts for your runtime, @yaebal deps
  tsconfig.json       # strict, ESM, NodeNext
  src/index.ts        # a working bot, wired with the plugins you picked
  .env.example        # BOT_TOKEN=
  .gitignore
  README.md

The generated src/index.ts already wires the plugins you chose — e.g. picking session adds .install(session(...)), picking again adds autoRetry(bot.api) — plus a /start command and a text echo.

then

terminal
cd my-bot
pnpm install
# add your BOT_TOKEN to .env
pnpm dev
flagvalues
--runtime / -rnode (default), bun, deno
--plugins / -pcomma list of session, ratelimiter, again