From 3b9233307acfc32414ec982cca2cf72471ac4d50 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 4 Jan 2019 09:55:40 +0000 Subject: moved config around somewhat --- main.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index bc203d8..0370b6d 100644 --- a/main.go +++ b/main.go @@ -12,12 +12,23 @@ func main() { pass := flag.String("pass", "", "password") flag.Parse() fmt.Printf("PASS len %d\n", len(*pass)) - config := irc.ClientConfig { + config := irc.ClientConfig{ Nick: "watt", Pass: *pass, User: "wat/tripsit", Name: "wat", } + watConfig := wat.WatConfig{ + PermittedChannels: []string{ + "##wat", + //"##test", + "##sweden", + "##freedom", + }, + IgnoredHosts: []string{ + "tripsit/user/creatonez", + }, + } tcpConf := &tls.Config{ InsecureSkipVerify: true, } @@ -26,6 +37,6 @@ func main() { fmt.Println("err " + err.Error()) return } - wwat := wat.NewWatBot(&config, conn) + wwat := wat.NewWatBot(&config, &watConfig, conn) wwat.Run() } -- cgit v1.2.3