runs in a container in a pod
Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
This commit is contained in:
parent
dd3a079d62
commit
d701d1604e
6
DOCKERFILE
Normal file
6
DOCKERFILE
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM golang
|
||||||
|
RUN mkdir /app
|
||||||
|
ADD . /app
|
||||||
|
WORKDIR /app
|
||||||
|
RUN go build /app
|
||||||
|
CMD [ "/app/watbot"]
|
10
main.go
10
main.go
@ -13,10 +13,10 @@ func main() {
|
|||||||
flag.Parse()
|
flag.Parse()
|
||||||
fmt.Printf("PASS len %d\n", len(*pass))
|
fmt.Printf("PASS len %d\n", len(*pass))
|
||||||
config := irc.ClientConfig{
|
config := irc.ClientConfig{
|
||||||
Nick: "watt",
|
Nick: "watbot",
|
||||||
Pass: *pass,
|
Pass: *pass,
|
||||||
User: "wat",
|
User: "watbot",
|
||||||
Name: "wat",
|
Name: "watbot",
|
||||||
}
|
}
|
||||||
watConfig := wat.WatConfig{
|
watConfig := wat.WatConfig{
|
||||||
PermittedChannels: []string{
|
PermittedChannels: []string{
|
||||||
@ -28,9 +28,9 @@ func main() {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
tcpConf := &tls.Config{
|
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 {
|
if err != nil {
|
||||||
fmt.Println("err " + err.Error())
|
fmt.Println("err " + err.Error())
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user