A template to start your Discord bot in Typescript with discord.js
- Install Node.js
- Download the template
- Add your bot's token and id in the .env file
- Run
npm i
- Run
npm run register-commands
- Run
npm run start
(orF5
to debug if you are on vscode) - Your bot should be online !
- You can rename the
src/structures/Bot.ts
file and its class by the name of your bot - In your commands you can use the built-in async functions
execute
,executeAutocomplete
andexecuteContext
in relation to what your command does - Commands and events loaded are added in
Bot#commands
andBot#events
respectively - The
Command
andEvent
classes both have thedisabled
property which, once enabled, allows you to disable the desired command or event
Need help ? Join my Discord server and send me a private message !