Rename to antispam
This commit is contained in:
parent
1e91b97de3
commit
d372e99398
5 changed files with 7 additions and 7 deletions
|
|
@ -2,4 +2,4 @@
|
||||||
.gitignore
|
.gitignore
|
||||||
*.session
|
*.session
|
||||||
*.yaml
|
*.yaml
|
||||||
telegram-antiscam
|
telegram-antispam
|
||||||
|
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1,3 @@
|
||||||
*.session
|
*.session
|
||||||
*.yaml
|
*.yaml
|
||||||
telegram-antiscam
|
telegram-antispam
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the binary
|
# 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
|
# Runtime stage
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
@ -27,8 +27,8 @@ WORKDIR /app
|
||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
|
|
||||||
# Copy binary from builder
|
# Copy binary from builder
|
||||||
COPY --from=builder /build/telegram-antiscam .
|
COPY --from=builder /build/telegram-antispam .
|
||||||
|
|
||||||
# Run the bot with config path
|
# Run the bot with config path
|
||||||
ENTRYPOINT ["/app/telegram-antiscam"]
|
ENTRYPOINT ["/app/telegram-antispam"]
|
||||||
CMD ["/app/config.yaml"]
|
CMD ["/app/config.yaml"]
|
||||||
|
|
|
||||||
2
bot.go
2
bot.go
|
|
@ -59,7 +59,7 @@ alert_chat: 0
|
||||||
ntfy_host: "https://ntfy.sh/"
|
ntfy_host: "https://ntfy.sh/"
|
||||||
ntfy_token: ""
|
ntfy_token: ""
|
||||||
ntfy_topic: ""
|
ntfy_topic: ""
|
||||||
session_path: "antiscam.session"
|
session_path: "antispam.session"
|
||||||
scam_patterns: []
|
scam_patterns: []
|
||||||
bad_words: []
|
bad_words: []
|
||||||
`
|
`
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
||||||
module git.zio.sh/astra/telegram-antiscam
|
module git.zio.sh/astra/telegram-antispam
|
||||||
|
|
||||||
go 1.25.3
|
go 1.25.3
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue