The salad discord bot
- Open a terminal and navigate to the bots folder
- Run
npm i
to install dependencies - Run
npm build:bot
to compile the bot - The bot will be compiled into ./dist/src
- In
.env.example
fill in the config values - Remove
.example
from.env.example
- Open a terminal and navigate to the bots folder
- Execute
npm i --production
and wait till it's done - Execute
prisma migrate deploy
and wait till it's done - Execute
prisma generate
and wait till it's done - You're ready to start the bot!
- Open a terminal and navigate to the bots folder
- Run
npm run start
and the bot should log in - The bot is now ready for use
lint
Lint the entire projectfix
Fix the project according to the linterbuild
Build both the bot and scriptsbuild:bot
Build only the botbuild:scripts
Build only the scriptsstart
Start the compiled botdev
Start the bot and watch for changesnew:interaction
Create a new interaction filenew:event
Create a new event handler filenew:task
Create a new task file