To install bot.ts, please read these instructions very carefully
First, you need to make sure that you have an environment compatible with bot.ts.
One of these runtimes:
Node.js ^=22.x.x
^=22.x.x
Deno ^=2.1.1
^=2.1.1
Bun ^=1.1.36 (recommended)
^=1.1.36
If you use Node.js, one of these package managers:
npm ^=9.x.x
^=9.x.x
Yarn ^=1.22.22
^=1.22.22
pnpm ^=9.14.2
^=9.14.2
Else, you can use the built-in package manager of Deno or Bun.
To install bot.ts, you must first install globaly the CLI with the following command.
npm i -g @ghom/bot.ts-cli@latest
Then you can run the following command and let yourself be guided.
The token is requested as part of the framework configuration; you can view the code handling your token by clicking herearrow-up-right.
The connection data to your database are all editable in the .env file after the build.
.env
You can now do the following command to go to the root of your project!
Last updated 1 year ago
bot new # or if you won't install the CLI globally npx @ghom/bot.ts-cli new pnpx @ghom/bot.ts-cli new # if you use pnpm bunx @ghom/bot.ts-cli new # if you use bun yarn dlx @ghom/bot.ts-cli new # if you use yarn
cd "bot-name"