This is a template!
- TypeScript
- Minimal configuration setup
- Out of box support for the following:
- Slash commands (
src/commands
) - Buttons (
src/buttons
) - Events (
src/events
)
- Slash commands (
- Dockerfile for deployment
Just run yarn dev
. No build is required, as the bot will run in ts-node
. You can use yarn dev-pretty
to run with prettified logs.
- Copy
config.example.json5
toconfig.json5
and fill in the fields - Build a docker image:
docker build -t bot .
- Start a container from that image:
docker run bot
Done!
- Copy
config.example.json5
toconfig.json5
and fill in the fields yarn build
to transpile TypeScript to JavaScriptyarn host
to start the bot
Building and hosting are separated because changes to
config.json5
do not require a complete re-build of the bot.