create a bot
scaffold a working YAEBAL bot in one command — pick a runtime and a few plugins, get a wired project.
scaffold
pnpm create yaebal my-bot
# or: npm create yaebal@latest my-bot · bun create yaebal my-botOn a terminal it asks for the project name, runtime (node / bun / deno), and plugins. In automation, pass flags instead — no prompts, no hangs:
# non-interactive (CI-friendly) — pass everything as flags:
pnpm create yaebal my-bot --runtime bun --plugins session,againwhat you get
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.mdThe 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
cd my-bot
pnpm install
# add your BOT_TOKEN to .env
pnpm dev| flag | values |
|---|---|
--runtime / -r | node (default), bun, deno |
--plugins / -p | comma list of session, ratelimiter, again |