blob: dd7ec6f75f1250e61993fe38154c707a62636dbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package main
import "fmt"
import "github.com/go-irc/irc"
import "github.com/namsral/flag"
import "crypto/tls"
import "git.circuitco.de/self/watbot/wat"
func main() {
pass := flag.String("pass", "", "password")
flag.Parse()
config := irc.ClientConfig {
Nick: "watt",
Pass: *pass,
User: "wat/tripsit",
Name: "wat",
}
tcpConf := &tls.Config{
InsecureSkipVerify: true,
}
conn, err := tls.Dial("tcp", "127.0.0.1:9696", tcpConf)
if err != nil {
fmt.Println("err " + err.Error())
return
}
wwat := wat.NewWatBot(&config, conn)
wwat.Run()
}
|