A simple-to-use template I use for my bots.
- Support for all application commands (msg, usr, chatInput)
- Permissions system
- DB connection with mongodb
Clone the repository
git clone https://github.com/keston-dev/bot-templateTo install dependencies:
bun installTo run:
bun devSee .example.env
Review the included *.example.ts files, as well as the completed example commands ping, codeblock, and getId.
All values have been documented.
Done via the bun load-commands and bun delete-commands respectively. (or the docker compose variants, bun docker:load-commands and bun docker:delete-commands).
Done separately to avoid spamming the API by loading every refresh, only call when adding new commands/editing the OPTIONS (i.e. description, subcommands, etc) of existing ones, not the execute blocks.