I Build this bot by following discord.js Guide you can start there too :>.
to build run :
npm install
Don't forget to add .env file to your project root.
BOT_TOKEN="REPLACE THIS WITH YOUR BOT TOKEN"
GUILDID="REPLACE THIS WITH YOUR HOST SERVER ID"
CLIENTID="REPLACE THIS WITH YOUR BOT ID"
first you have to register slash commands
node ./deploy.js
now you can start your bot
node .