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>",
|
"UntappdToken": "<Your Token>",
|
||||||
"UntappdFreq": 3600,
|
"UntappdFreq": 3600,
|
||||||
|
"UntappdChannels": [],
|
||||||
|
|
||||||
"TwitterConsumerKey": "<Consumer Key>",
|
"TwitterConsumerKey": "<Consumer Key>",
|
||||||
"TwitterConsumerSecret": "<Consumer Secret>",
|
"TwitterConsumerSecret": "<Consumer Secret>",
|
||||||
|
|
|
@ -23,6 +23,7 @@ type Config struct {
|
||||||
HttpAddr string
|
HttpAddr string
|
||||||
UntappdToken string
|
UntappdToken string
|
||||||
UntappdFreq int
|
UntappdFreq int
|
||||||
|
UntappdChannels []string
|
||||||
WelcomeMsgs []string
|
WelcomeMsgs []string
|
||||||
TwitterConsumerKey string
|
TwitterConsumerKey string
|
||||||
TwitterConsumerSecret string
|
TwitterConsumerSecret string
|
||||||
|
|
|
@ -29,7 +29,7 @@ func NewBeersPlugin(bot *bot.Bot) *BeersPlugin {
|
||||||
Bot: bot,
|
Bot: bot,
|
||||||
}
|
}
|
||||||
p.LoadData()
|
p.LoadData()
|
||||||
for _, channel := range bot.Config.Channels {
|
for _, channel := range bot.Config.UntappdChannels {
|
||||||
go p.untappdLoop(channel)
|
go p.untappdLoop(channel)
|
||||||
}
|
}
|
||||||
return &p
|
return &p
|
||||||
|
|
Loading…
Reference in New Issue