watbot/main.go
alex 2b1c9889e5 misc improvements
added self reference, allowing the bot to accrue currency
messed about with some messages (removed swears, changed 'schlorped', etc)
improved send output
regular wattery to make 'wat' interesting
2018-10-25 01:04:35 +01:00

32 lines
602 B
Go

package main
import "fmt"
import "crypto/tls"
import "github.com/go-irc/irc"
import "github.com/namsral/flag"
import "git.circuitco.de/self/watbot/wat"
func main() {
pass := flag.String("pass", "", "password")
flag.Parse()
fmt.Printf("PASS len %d\n", len(*pass))
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()
}