From d701d1604e1264ed3e3c4a60643c4a18b969d049 Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Wed, 4 Oct 2023 13:18:16 +0530 Subject: [PATCH] runs in a container in a pod Signed-off-by: Pratyush Desai --- DOCKERFILE | 6 ++++++ main.go | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 DOCKERFILE diff --git a/DOCKERFILE b/DOCKERFILE new file mode 100644 index 0000000..ab564ac --- /dev/null +++ b/DOCKERFILE @@ -0,0 +1,6 @@ +FROM golang +RUN mkdir /app +ADD . /app +WORKDIR /app +RUN go build /app +CMD [ "/app/watbot"] diff --git a/main.go b/main.go index e817bcc..8a6f2e5 100644 --- a/main.go +++ b/main.go @@ -13,10 +13,10 @@ func main() { flag.Parse() fmt.Printf("PASS len %d\n", len(*pass)) config := irc.ClientConfig{ - Nick: "watt", + Nick: "watbot", Pass: *pass, - User: "wat", - Name: "wat", + User: "watbot", + Name: "watbot", } watConfig := wat.WatConfig{ PermittedChannels: []string{ @@ -28,9 +28,9 @@ func main() { }, } tcpConf := &tls.Config{ - InsecureSkipVerify: true, + InsecureSkipVerify: false, } - conn, err := tls.Dial("tcp", "127.0.0.1:6697", tcpConf) + conn, err := tls.Dial("tcp", "irc.casa:6697", tcpConf) if err != nil { fmt.Println("err " + err.Error()) return