summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authoralex2019-01-04 09:55:40 +0000
committeralex2019-01-04 09:55:40 +0000
commit3b9233307acfc32414ec982cca2cf72471ac4d50 (patch)
tree8a136d2b158043b1dc448e1567481e78e447a46a /main.go
parentd4c4e38ba8d203a35ddf9e7ef057fee2db80d0f9 (diff)
downloadwatbot-3b9233307acfc32414ec982cca2cf72471ac4d50.tar.gz
watbot-3b9233307acfc32414ec982cca2cf72471ac4d50.tar.bz2
watbot-3b9233307acfc32414ec982cca2cf72471ac4d50.zip
moved config around somewhat
Diffstat (limited to 'main.go')
-rw-r--r--main.go15
1 files changed, 13 insertions, 2 deletions
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()
}