From f85ce188ba8357588022d1e191aed25e4a8d685f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zahradn=C3=ADk?= Date: Mon, 11 Mar 2024 13:33:40 +0100 Subject: [PATCH] fix inverted logic, timezone --- Dockerfile | 1 + ping.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5305b2f..de7b2bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,5 +19,6 @@ FROM alpine WORKDIR /app COPY --from=gobuild /bin/buzerator /bin/buzerator +ENV TZ=Europe/Bratislava CMD ["/bin/buzerator"] diff --git a/ping.go b/ping.go index a695740..f83707a 100644 --- a/ping.go +++ b/ping.go @@ -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{} @@ -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) } }