A slash-create template, using Bun runtime.
bun create discord-interactions interactions-bot
After that, make sure to install dependencies using bun or any other npm compatible package manager:
bun install
To run this locally, rename .env.example
to .env
and fill in the variables, then you can run bun run.js
to start a local dev environment and use something like ngrok/cloudflare to tunnel it to a URL.