From ff661b1d272fc37beebc2a28b3afd18669c46724 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sun, 25 Aug 2013 23:44:30 -0400 Subject: [PATCH] Fixing minor go vet issue --- plugins/twitter.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/twitter.go b/plugins/twitter.go index a981eb2..d8b71c3 100644 --- a/plugins/twitter.go +++ b/plugins/twitter.go @@ -88,13 +88,13 @@ func (p *TwitterPlugin) Message(message bot.Message) bool { func (p *TwitterPlugin) LoadData() { // This bot has no data to load p.Client = twitter.New(&oauth.Credentials{ - p.Bot.Config.TwitterConsumerKey, - p.Bot.Config.TwitterConsumerSecret, + Token: p.Bot.Config.TwitterConsumerKey, + Secret: p.Bot.Config.TwitterConsumerSecret, }) p.Client.SetAuth(&oauth.Credentials{ - p.Bot.Config.TwitterUserKey, - p.Bot.Config.TwitterUserSecret, + Token: p.Bot.Config.TwitterUserKey, + Secret: p.Bot.Config.TwitterUserSecret, }) _, err := p.Client.VerifyCredentials(nil)