- Docker, docker-compose
- Discord Bot Token
cp -p .envrc.sample .envrc
and set variables.- Install direnv.
direnv allow
- Invite your bot to your server.
docker-compose run app
- Post
~join
in your server. - The bot talk in voice chat.
docker-compose run app /bin/bash
RUST_BACKTRACE=1 cargo test
- Lint
cargo clippy --all
- Format
cargo fmt --all
act can use as a task runner in this project.
But, it takes longer than cargo
commands.
# lint, format(check), test
act
# deploy to heroku
act release
- Heroku Account
docker-compose run heroku /bin/bash
heroku create <APP_NAME>
heroku login
apk add docker
heroku container:login
heroku container:push app -a <APP_NAME>
heroku container:release app -a <APP_NAME>
heroku ps:scale app=1 -a <APP_NAME>
MIT