diff --git a/config.json b/config.json index ecfd596..2890f7f 100644 --- a/config.json +++ b/config.json @@ -17,6 +17,7 @@ "UntappdToken": "", "UntappdFreq": 3600, + "UntappdChannels": [], "TwitterConsumerKey": "", "TwitterConsumerSecret": "", diff --git a/config/config.go b/config/config.go index 338016e..94e0f01 100644 --- a/config/config.go +++ b/config/config.go @@ -23,6 +23,7 @@ type Config struct { HttpAddr string UntappdToken string UntappdFreq int + UntappdChannels []string WelcomeMsgs []string TwitterConsumerKey string TwitterConsumerSecret string diff --git a/plugins/beers.go b/plugins/beers.go index 81326ec..2f12471 100644 --- a/plugins/beers.go +++ b/plugins/beers.go @@ -29,7 +29,7 @@ func NewBeersPlugin(bot *bot.Bot) *BeersPlugin { Bot: bot, } p.LoadData() - for _, channel := range bot.Config.Channels { + for _, channel := range bot.Config.UntappdChannels { go p.untappdLoop(channel) } return &p