A Discord BOT named 機器幽浮
maintained by jonz94
- Install Bun
Clone this repository:
git clone https://github.com/jonz94/discord-bot-ufo.git
Change to the root directory of the project:
cd discord-bot-ufo
Install all dependencies:
bun i
Setup .env
and .env.dev
:
bun run setup
Then, edit .env
and .env.dev
environment files respectively
.env
is for production environment.env.dev
is for development environment
Launch the development BOT locally (using .env.dev
configuration):
bun start
Run test:
bun run test
Build and launch the production BOT locally (using .env
configuration):
bun run build
bun run preview
- Install git-cliff
- Bump version
bun run release
- Push commits with tags
git push --follow-tags
- GitHub Actions will be triggered and it will build the Docker Image for us
Using the following docker run
command:
docker run --name="discord-bot-ufo" -d \
--restart=unless-stopped \
-v "$(pwd)/.env:/app/.env" \
jonz94/discord-bot-ufo
Or using the following docker compose
command:
docker compose build
docker compose up
See LICENSE.