diff options
author | alex | 2019-01-04 09:55:40 +0000 |
---|---|---|
committer | alex | 2019-01-04 09:55:40 +0000 |
commit | 3b9233307acfc32414ec982cca2cf72471ac4d50 (patch) | |
tree | 8a136d2b158043b1dc448e1567481e78e447a46a /main.go | |
parent | d4c4e38ba8d203a35ddf9e7ef057fee2db80d0f9 (diff) | |
download | watbot-3b9233307acfc32414ec982cca2cf72471ac4d50.tar.gz watbot-3b9233307acfc32414ec982cca2cf72471ac4d50.tar.bz2 watbot-3b9233307acfc32414ec982cca2cf72471ac4d50.zip |
moved config around somewhat
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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() } |