My go-to template for building Discord bots with TypeScript & discord.js
- NodeJS
Latest LTS version is recommended. - pnpm
Or otherwise your favorite package manager. - Some knowledge of how to run a Discord bot.
- Organized directories for commands, events, scripts etc.
- Easy to navigate/understand code base.
- Minimal setup required to get online.
- Localization support already built-in usin i18next.
- Click on the
Use this templatebutton and create a new repository with your desired name. - Clone your brand new repository, open it in your IDE of choice and start editing.
- When you are ready to run your bot:
- Copy and paste
.env.example, rename it to.envand replace the values inside with your environment variables. - Run
pnpm buildandpnpm start, and your bot should be online.
Instead ofpnpmuse your package manager.
- Copy and paste
- There are no real guidelines for contributing, the only thing that must be done however, is making sure the
prettierscript is ran before opening a pull request.
- Add better documentation.
- Simplify some parts of the code and add comments.