Installation
To install bot.ts, please read these instructions very carefully, every word is important!
Prerequisites
First, you need to make sure that you have an environment compatible with bot.ts.
Node
^=18.x.x
NPM
^=9.x.x
Git
^=2.x.x
Install the CLI
To install bot.ts, you must first install globaly the CLI with the following command.
Generate files
Then you can go to the place where you want to place your project (e.g. /home
) and run the make bot
command.
CLI pattern
Giving the token is highly recommended, it will help setup a lot of environment variables.
Example
Setup a simple bot with sqlite3.
If you want to choose a database other than sqlite3, you can enter it directly with the --database
option. Several options can then be added, such as host, port, password, etc.
The connection data to your database are all editable in the .env
file after the build.
Now is installed
The .env
file has been created and contains your bot's private information, you can now do the following command to go to the root of your project!
Last updated