The current bot structure is deprecated. In my opinion, the current implementations by many developers are a complete mess. I recommend using a framework; the best option is NestJS and the NestCord module.
A quick-start template for Discord.js v14 in Typescript that contains handling for commands, events, and interactions!
- Clone the project with git clone
git@github.com:GlobalArtInc/discord/js-v14-ts-starter.git
- Rename .env.sample to .env and configure it
- Start the bot in development mode
npm run start:dev
- Build the bot
npm run build
- Start the bot
npm run start
You can deploy it to docker or kubernetes.
- Deployment to kubernetes using Werf