mirror of https://github.com/velour/catbase.git
Activate beers only for certain channels (exclude control channel)
This commit is contained in:
parent
776d363595
commit
1a41358d64
|
@ -17,6 +17,7 @@
|
|||
|
||||
"UntappdToken": "<Your Token>",
|
||||
"UntappdFreq": 3600,
|
||||
"UntappdChannels": [],
|
||||
|
||||
"TwitterConsumerKey": "<Consumer Key>",
|
||||
"TwitterConsumerSecret": "<Consumer Secret>",
|
||||
|
|
|
@ -23,6 +23,7 @@ type Config struct {
|
|||
HttpAddr string
|
||||
UntappdToken string
|
||||
UntappdFreq int
|
||||
UntappdChannels []string
|
||||
WelcomeMsgs []string
|
||||
TwitterConsumerKey string
|
||||
TwitterConsumerSecret string
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue