A typescript template for Discord.js v14 that includes handlers, slash commands, mongodb, permissions and more.
.env
and fill it out accordinglyTOKEN=YOURTOKENHERE
CLIENT_ID=BOTS CLIENT ID
PREFIX=!
MONGO_URI=YOUR MONGO CONNECTION STRING
MONGO_DATABASE_NAME=YOUR DATABASE NAME
npm install -g typescript
This command will also install the node modules if you haven't installed them.
npm run build
build
that contains compiled version of your ts code to js. You can run the following command in your terminal to run the project:npm start