Skip to content

Commit

Permalink
add db to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed May 14, 2024
1 parent 64e78bb commit 8b92b6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ WORKDIR /app

COPY --from=builder /src/statusbot .

CMD ./statusbot -b ${STATUSBOT_TOKEN} -t ${NOTFICATION_TIME} -z ${TIMEZONE}
CMD ./statusbot -b ${STATUSBOT_TOKEN} -t ${NOTFICATION_TIME} -z ${TIMEZONE} -d ${DATABASE}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ cd statusbot
- Using go

```bash
go run main.go -b <your bot token> -t <notfication time (default to 17:00)> -z <timezone (default Africa/Cairo)>
go run main.go -b <your bot token> -t <notfication time (default to 17:00)> -z <timezone (default Africa/Cairo)> -d <path to database (default ~/.statusbot)>
```

- Using Docker

```bash
docker build -t statusbot .
docker run -e STATUSBOT_TOKEN=<your bot token> -e NOTFICATION_TIME=<notfication time> -e TIMEZONE=<timezone> -it statusbot
docker run -e STATUSBOT_TOKEN=<your bot token> -e NOTFICATION_TIME=<notfication time> -e TIMEZONE=<timezone> -e DATABASE=<path to database>-it statusbot
```

## Create a bot
Expand Down

0 comments on commit 8b92b6c

Please sign in to comment.