Bot.ts
  • Introduction
  • Installation
  • Configuration
  • Migrate to v9
  • Troubleshooting
  • Command line
    • CLI Overview
    • Docker
    • Build
    • Start
    • Format
    • Lint
    • Test
    • Update
    • Readme
    • Final
  • Usage
    • Command
    • Listener
    • Button
    • Namespace
    • Cron
    • Logger
    • Paginator
    • Database
    • Caching
    • Custom types
  • Native commands
    • Eval
    • Help
    • Database
    • Terminal
    • Turn
    • Info
  • Command examples
    • Prefix
  • Utilities
    • Texts
    • Paths and URLs
    • Dates and durations
    • Special events
    • Other
  • Deployment
    • Production
    • Development
  • Contributing
    • Regulations
    • Coding Style
  • Annexes
    • Discord Support
Powered by GitBook
On this page
  • Prerequisites
  • Install the CLI
  • Now is installed

Was this helpful?

Installation

To install bot.ts, please read these instructions very carefully

Prerequisites

First, you need to make sure that you have an environment compatible with bot.ts.

One of these runtimes:

  • Node.js ^=22.x.x

  • Deno ^=2.1.1

  • Bun ^=1.1.36 (recommended)

If you use Node.js, one of these package managers:

  • npm ^=9.x.x

  • Yarn ^=1.22.22

  • pnpm ^=9.14.2

Else, you can use the built-in package manager of Deno or Bun.

Install the CLI

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.

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

The connection data to your database are all editable in the .env file after the build.

Now is installed

You can now do the following command to go to the root of your project!

cd "bot-name"
PreviousIntroductionNextConfiguration

Last updated 5 months ago

Was this helpful?

The token is requested as part of the framework configuration; you can view the code handling your token by clicking .

here