mirror of https://github.com/velour/catbase.git
Fixing minor go vet issue
This commit is contained in:
parent
f655366930
commit
ff661b1d27
|
@ -88,13 +88,13 @@ func (p *TwitterPlugin) Message(message bot.Message) bool {
|
||||||
func (p *TwitterPlugin) LoadData() {
|
func (p *TwitterPlugin) LoadData() {
|
||||||
// This bot has no data to load
|
// This bot has no data to load
|
||||||
p.Client = twitter.New(&oauth.Credentials{
|
p.Client = twitter.New(&oauth.Credentials{
|
||||||
p.Bot.Config.TwitterConsumerKey,
|
Token: p.Bot.Config.TwitterConsumerKey,
|
||||||
p.Bot.Config.TwitterConsumerSecret,
|
Secret: p.Bot.Config.TwitterConsumerSecret,
|
||||||
})
|
})
|
||||||
|
|
||||||
p.Client.SetAuth(&oauth.Credentials{
|
p.Client.SetAuth(&oauth.Credentials{
|
||||||
p.Bot.Config.TwitterUserKey,
|
Token: p.Bot.Config.TwitterUserKey,
|
||||||
p.Bot.Config.TwitterUserSecret,
|
Secret: p.Bot.Config.TwitterUserSecret,
|
||||||
})
|
})
|
||||||
|
|
||||||
_, err := p.Client.VerifyCredentials(nil)
|
_, err := p.Client.VerifyCredentials(nil)
|
||||||
|
|
Loading…
Reference in New Issue