From d372e99398a7f6336d535d7123e3b65eab5f4b6b Mon Sep 17 00:00:00 2001 From: Astra Date: Wed, 8 Apr 2026 10:35:18 +0100 Subject: [PATCH] Rename to antispam --- .dockerignore | 2 +- .gitignore | 2 +- Dockerfile | 6 +++--- bot.go | 2 +- go.mod | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.dockerignore b/.dockerignore index 9ab51ba..4987f0c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,4 +2,4 @@ .gitignore *.session *.yaml -telegram-antiscam +telegram-antispam diff --git a/.gitignore b/.gitignore index 922cb23..967a0eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ *.session *.yaml -telegram-antiscam +telegram-antispam diff --git a/Dockerfile b/Dockerfile index d7d16a7..ba5459a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN go mod download COPY . . # Build the binary -RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o telegram-antiscam . +RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o telegram-antispam . # Runtime stage FROM alpine:latest @@ -27,8 +27,8 @@ WORKDIR /app RUN apk add --no-cache ca-certificates # Copy binary from builder -COPY --from=builder /build/telegram-antiscam . +COPY --from=builder /build/telegram-antispam . # Run the bot with config path -ENTRYPOINT ["/app/telegram-antiscam"] +ENTRYPOINT ["/app/telegram-antispam"] CMD ["/app/config.yaml"] diff --git a/bot.go b/bot.go index bf239de..918c4ec 100644 --- a/bot.go +++ b/bot.go @@ -59,7 +59,7 @@ alert_chat: 0 ntfy_host: "https://ntfy.sh/" ntfy_token: "" ntfy_topic: "" -session_path: "antiscam.session" +session_path: "antispam.session" scam_patterns: [] bad_words: [] ` diff --git a/go.mod b/go.mod index bcd4c4a..d14a850 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.zio.sh/astra/telegram-antiscam +module git.zio.sh/astra/telegram-antispam go 1.25.3