diff --git a/Dockerfile b/Dockerfile index e7d99e0..87083ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.19 RUN apk --no-cache add nushell -COPY bitcoin-fee-notifier.nu /etc/periodic/15min/ +COPY bitcoin-fee-notifier.nu /etc/periodic/hourly/ ARG NTFY_TOPIC ENV NTFY_TOPIC=${NTFY_TOPIC} ENV CHEAP_FEE 35 diff --git a/bitcoin-fee-notifier.nu b/bitcoin-fee-notifier.nu index 3401faf..884bd66 100755 --- a/bitcoin-fee-notifier.nu +++ b/bitcoin-fee-notifier.nu @@ -3,8 +3,8 @@ use std log if "NTFY_TOPIC" not-in $env { - log error "You must define a ntfy.sh topic as NTFY_TOPIC" - exit 1 + log error "You must define a ntfy.sh topic as NTFY_TOPIC" + exit 1 } const last_fee = '/tmp/last_cheap_fee' @@ -23,7 +23,7 @@ if $fee < $cheap { $fee | save -f $last_fee log debug $'Notified cheap transaction fees at ($fee) sat/vB' } else { - log debug $'Already notified transaction fees under ($fee) sat/vB' + log debug $'Already notified transaction fees at ($fee) sat/vB' } } else { log debug $'Transaction fees too high at ($fee) sat/vB'