A template for Discord.JS with Typescript and a command handler.
- Run these commands:
npx degit n3oney/discord.js-typescript-template
- this will "clone" the repository to your current directorynpm install
- this will install all the required modules
- Create a file called
.env
and put this inside of it:
TOKEN=BotsToken
Replace BotsToken
with the token of your bot.
3. You're ready to go! Just run npm run dev
for development, or npm run build
to compile TypeScript to JavaScript and then npm start
to start the bot in production mode.