Skip to content

Commit

Permalink
fix inverted logic, timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
gardenerik committed Mar 11, 2024
1 parent 5304db1 commit f85ce18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ FROM alpine
WORKDIR /app

COPY --from=gobuild /bin/buzerator /bin/buzerator
ENV TZ=Europe/Bratislava

CMD ["/bin/buzerator"]
4 changes: 2 additions & 2 deletions ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"
)

const pingCron = "30 12 * * 1,3,5"
const pingCron = "10 16 * * 1,3,5"

func PingMissingUsers() error {
users := map[string][]string{}
Expand Down Expand Up @@ -41,7 +41,7 @@ func PingMissingUsers() error {
}

for user, replied := range qi.Responses {
if replied {
if !replied {
users[user] = append(users[user], qi.Question.Channel)
}
}
Expand Down

0 comments on commit f85ce18

Please sign in to comment.