From 7b769ac550e483ba52ed6e87fb96d70e999139f2 Mon Sep 17 00:00:00 2001 From: jamesread Date: Tue, 5 Dec 2023 09:17:07 +0000 Subject: [PATCH] add telegram --- .goreleaser.yaml | 12 ++++++++++++ go.mod | 2 +- go.sum | 1 - 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ca9e3f1..c188ccc 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -24,6 +24,14 @@ builds: goos: [linux] goarch: [amd64] + - id: adaptor-telegram + main: ./cmd/japella-adaptor-telegram/main.go + binary: japella-adaptor-telegram + env: [CGO_ENABLED=0] + goos: [linux] + goarch: [amd64] + + archives: - builds: @@ -38,6 +46,10 @@ dockers: image_templates: - ghcr.io/jamesread/japella-adaptor-discord + - id: adaptor-telegram + dockerfile: Dockerfile.japella-adaptor-telegram + image_templates: + - ghcr.io/jamesread/japella-adaptor-telegram changelog: sort: asc diff --git a/go.mod b/go.mod index 163c215..1b6a68a 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ require ( github.com/bwmarrin/discordgo v0.26.1 github.com/fzipp/gocyclo v0.6.0 github.com/go-critic/go-critic v0.9.0 + github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1 github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 github.com/sirupsen/logrus v1.9.3 github.com/streadway/amqp v1.0.0 @@ -40,7 +41,6 @@ require ( github.com/go-chi/chi/v5 v5.0.10 // indirect github.com/go-logr/logr v1.3.0 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1 // indirect github.com/go-toolsmith/astcast v1.1.0 // indirect github.com/go-toolsmith/astcopy v1.1.0 // indirect github.com/go-toolsmith/astequal v1.1.0 // indirect diff --git a/go.sum b/go.sum index 447fbcb..acedbfb 100644 --- a/go.sum +++ b/go.sum @@ -171,7 +171,6 @@ github.com/teris-io/shortid v0.0.0-20220617161101-71ec9f2aa569 h1:xzABM9let0HLLq github.com/teris-io/shortid v0.0.0-20220617161101-71ec9f2aa569/go.mod h1:2Ly+NIftZN4de9zRmENdYbvPQeaVIYKWpLFStLFEBgI= github.com/tetratelabs/wazero v1.5.0 h1:Yz3fZHivfDiZFUXnWMPUoiW7s8tC1sjdBtlJn08qYa0= github.com/tetratelabs/wazero v1.5.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A= -github.com/urfave/cli v1.22.12/go.mod h1:sSBEIC79qR6OvcmsD4U3KABeOTxDqQtdDnaFuUN30b8= github.com/vbatts/tar-split v0.11.5 h1:3bHCTIheBm1qFTcgh9oPu+nNBtX+XJIupG/vacinCts= github.com/vbatts/tar-split v0.11.5/go.mod h1:yZbwRsSeGjusneWgA781EKej9HF8vme8okylkAeNKLk= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=