diff --git a/pkg/api/currency.go b/pkg/api/currency.go index 4b4b7be..a39c7af 100644 --- a/pkg/api/currency.go +++ b/pkg/api/currency.go @@ -17,7 +17,7 @@ type currencyResponse struct { } // Currency returns the exchange rate for a given given amount to another. -func Currency(currAmount string, currFrom string, currTo string) (string, error) { +func Currency(currAmount, currFrom, currTo string) (string, error) { baseUrl := "https://api.frankfurter.app" currFromUpper := strings.ToUpper(currFrom) currToUpper := strings.ToUpper(currTo) diff --git a/pkg/api/ivr/firstline.go b/pkg/api/ivr/firstline.go index ff3da2f..66ada50 100644 --- a/pkg/api/ivr/firstline.go +++ b/pkg/api/ivr/firstline.go @@ -18,7 +18,7 @@ type firstLineApiResponse struct { // FirstLine returns the first line a given user has sent in a // given channel. -func FirstLine(channel string, username string) (string, error) { +func FirstLine(channel, username string) (string, error) { baseUrl := "https://api.ivr.fi/logs/firstmessage" resp, err := http.Get(fmt.Sprintf("%s/%s/%s", baseUrl, channel, username)) diff --git a/pkg/api/ivr/followage.go b/pkg/api/ivr/followage.go index b0b18d0..de6687a 100644 --- a/pkg/api/ivr/followage.go +++ b/pkg/api/ivr/followage.go @@ -20,7 +20,7 @@ type followageApiResponse struct { } // Followage returns the time since a given user followed a given streamer -func Followage(streamer string, username string) (string, error) { +func Followage(streamer, username string) (string, error) { baseUrl := "https://api.ivr.fi/twitch/subage" resp, err := http.Get(fmt.Sprintf("%s/%s/%s", baseUrl, username, streamer)) diff --git a/pkg/api/ivr/randomquote.go b/pkg/api/ivr/randomquote.go index bdc7c1f..c6abb9c 100644 --- a/pkg/api/ivr/randomquote.go +++ b/pkg/api/ivr/randomquote.go @@ -18,7 +18,7 @@ type randomQuoteApiResponse struct { // FirstLine returns the first line a given user has sent in a // given channel. -func RandomQuote(channel string, username string) (string, error) { +func RandomQuote(channel, username string) (string, error) { baseUrl := "https://api.ivr.fi/logs/rq" resp, err := http.Get(fmt.Sprintf("%s/%s/%s", baseUrl, channel, username)) diff --git a/pkg/api/ivr/subage.go b/pkg/api/ivr/subage.go index 1497f05..f87f27f 100644 --- a/pkg/api/ivr/subage.go +++ b/pkg/api/ivr/subage.go @@ -31,7 +31,7 @@ type subStreak struct { } // Subage returns the length a given user has been subscribed to a given channel. -func Subage(username string, channel string) (string, error) { +func Subage(username, channel string) (string, error) { baseUrl := "https://api.ivr.fi/twitch/subage" resp, err := http.Get(fmt.Sprintf("%s/%s/%s", baseUrl, username, channel)) diff --git a/pkg/commands/botstatus.go b/pkg/commands/botstatus.go index eb883b0..3e54468 100644 --- a/pkg/commands/botstatus.go +++ b/pkg/commands/botstatus.go @@ -8,7 +8,7 @@ import ( log "github.com/sirupsen/logrus" ) -func BotStatus(channel string, name string, nb *bot.Bot) { +func BotStatus(channel, name string, nb *bot.Bot) { resp, err := aiden.ApiCall(fmt.Sprintf("api/v1/twitch/botStatus/%s?includeLimits=1", name)) if err != nil { diff --git a/pkg/commands/bttv.go b/pkg/commands/bttv.go index 17c90b2..d52b620 100644 --- a/pkg/commands/bttv.go +++ b/pkg/commands/bttv.go @@ -6,7 +6,7 @@ import ( "github.com/lyx0/nourybot/cmd/bot" ) -func Bttv(target string, emote string, nb *bot.Bot) { +func Bttv(target, emote string, nb *bot.Bot) { reply := fmt.Sprintf("https://betterttv.com/emotes/shared/search?query=%s", emote) nb.Send(target, reply) diff --git a/pkg/commands/currency.go b/pkg/commands/currency.go index 9e56a0c..9d5a709 100644 --- a/pkg/commands/currency.go +++ b/pkg/commands/currency.go @@ -6,7 +6,7 @@ import ( "github.com/sirupsen/logrus" ) -func Currency(target string, currAmount string, currFrom string, currTo string, nb *bot.Bot) { +func Currency(target, currAmount, currFrom, currTo string, nb *bot.Bot) { reply, err := api.Currency(currAmount, currFrom, currTo) if err != nil { logrus.Info(err) diff --git a/pkg/commands/echo.go b/pkg/commands/echo.go index ddd9917..71e5904 100644 --- a/pkg/commands/echo.go +++ b/pkg/commands/echo.go @@ -2,6 +2,6 @@ package commands import "github.com/lyx0/nourybot/cmd/bot" -func Echo(channel string, message string, nb *bot.Bot) { +func Echo(channel, message string, nb *bot.Bot) { nb.Send(channel, message) } diff --git a/pkg/commands/emotelookup.go b/pkg/commands/emotelookup.go index 76cff97..6f67ffe 100644 --- a/pkg/commands/emotelookup.go +++ b/pkg/commands/emotelookup.go @@ -7,7 +7,7 @@ import ( "github.com/lyx0/nourybot/pkg/api/ivr" ) -func EmoteLookup(channel string, emote string, nb *bot.Bot) { +func EmoteLookup(channel, emote string, nb *bot.Bot) { reply, err := ivr.EmoteLookup(emote) if err != nil { diff --git a/pkg/commands/ffz.go b/pkg/commands/ffz.go index 251f5f5..ba8082c 100644 --- a/pkg/commands/ffz.go +++ b/pkg/commands/ffz.go @@ -6,7 +6,7 @@ import ( "github.com/lyx0/nourybot/cmd/bot" ) -func Ffz(target string, emote string, nb *bot.Bot) { +func Ffz(target, emote string, nb *bot.Bot) { reply := fmt.Sprintf("https://www.frankerfacez.com/emoticons/?q=%s", emote) nb.Send(target, reply) diff --git a/pkg/commands/fill.go b/pkg/commands/fill.go index 36b2663..8353b6a 100644 --- a/pkg/commands/fill.go +++ b/pkg/commands/fill.go @@ -7,7 +7,7 @@ import ( "github.com/lyx0/nourybot/cmd/bot" ) -func Fill(channel string, emote string, nb *bot.Bot) { +func Fill(channel, emote string, nb *bot.Bot) { if emote[0] == '.' || emote[0] == '/' { nb.Send(channel, ":tf:") return diff --git a/pkg/commands/firstline.go b/pkg/commands/firstline.go index dd37807..0ca23ea 100644 --- a/pkg/commands/firstline.go +++ b/pkg/commands/firstline.go @@ -7,7 +7,7 @@ import ( "github.com/lyx0/nourybot/pkg/api/ivr" ) -func Firstline(channel string, streamer string, username string, nb *bot.Bot) { +func Firstline(channel, streamer, username string, nb *bot.Bot) { ivrResponse, err := ivr.FirstLine(streamer, username) if err != nil { diff --git a/pkg/commands/followage.go b/pkg/commands/followage.go index 13c589f..3204053 100644 --- a/pkg/commands/followage.go +++ b/pkg/commands/followage.go @@ -7,7 +7,7 @@ import ( "github.com/lyx0/nourybot/pkg/api/ivr" ) -func Followage(channel string, streamer string, username string, nb *bot.Bot) { +func Followage(channel, streamer, username string, nb *bot.Bot) { ivrResponse, err := ivr.Followage(streamer, username) if err != nil { diff --git a/pkg/commands/game.go b/pkg/commands/game.go index 1645dc4..6485c6a 100644 --- a/pkg/commands/game.go +++ b/pkg/commands/game.go @@ -8,7 +8,7 @@ import ( log "github.com/sirupsen/logrus" ) -func Game(channel string, name string, nb *bot.Bot) { +func Game(channel, name string, nb *bot.Bot) { game, err := aiden.ApiCall(fmt.Sprintf("api/v1/twitch/channel/%s/game", name)) if err != nil { diff --git a/pkg/commands/godocs.go b/pkg/commands/godocs.go index 9a92097..c0af799 100644 --- a/pkg/commands/godocs.go +++ b/pkg/commands/godocs.go @@ -6,7 +6,7 @@ import ( "github.com/lyx0/nourybot/cmd/bot" ) -func Godocs(channel string, searchTerm string, nb *bot.Bot) { +func Godocs(channel, searchTerm string, nb *bot.Bot) { resp := fmt.Sprintf("https://godocs.io/?q=%s", searchTerm) nb.Send(channel, resp) diff --git a/pkg/commands/number.go b/pkg/commands/number.go index 5e25e70..2e70a59 100644 --- a/pkg/commands/number.go +++ b/pkg/commands/number.go @@ -11,7 +11,7 @@ func RandomNumber(channel string, nb *bot.Bot) { nb.Send(channel, string(reply)) } -func Number(channel string, number string, nb *bot.Bot) { +func Number(channel, number string, nb *bot.Bot) { reply := api.Number(number) nb.Send(channel, string(reply)) diff --git a/pkg/commands/pingme.go b/pkg/commands/pingme.go index d118c93..4fbb6ff 100644 --- a/pkg/commands/pingme.go +++ b/pkg/commands/pingme.go @@ -6,7 +6,7 @@ import ( "github.com/lyx0/nourybot/cmd/bot" ) -func Pingme(channel string, user string, nb *bot.Bot) { +func Pingme(channel, user string, nb *bot.Bot) { response := fmt.Sprintf("@%s", user) nb.Send(channel, response) diff --git a/pkg/commands/profilepicture.go b/pkg/commands/profilepicture.go index 033d3b1..b6652f5 100644 --- a/pkg/commands/profilepicture.go +++ b/pkg/commands/profilepicture.go @@ -7,7 +7,7 @@ import ( "github.com/lyx0/nourybot/pkg/api/ivr" ) -func ProfilePicture(channel string, target string, nb *bot.Bot) { +func ProfilePicture(channel, target string, nb *bot.Bot) { reply, err := ivr.ProfilePicture(target) if err != nil { diff --git a/pkg/commands/pyramid.go b/pkg/commands/pyramid.go index efa5bfe..4d02653 100644 --- a/pkg/commands/pyramid.go +++ b/pkg/commands/pyramid.go @@ -8,7 +8,7 @@ import ( "github.com/lyx0/nourybot/cmd/bot" ) -func Pyramid(channel string, size string, emote string, nb *bot.Bot) { +func Pyramid(channel, size, emote string, nb *bot.Bot) { if size[0] == '.' || size[0] == '/' { nb.Send(channel, ":tf:") return diff --git a/pkg/commands/randomquote.go b/pkg/commands/randomquote.go index a52e787..402c3a5 100644 --- a/pkg/commands/randomquote.go +++ b/pkg/commands/randomquote.go @@ -7,7 +7,7 @@ import ( "github.com/lyx0/nourybot/pkg/api/ivr" ) -func RandomQuote(channel string, target string, username string, nb *bot.Bot) { +func RandomQuote(channel, target, username string, nb *bot.Bot) { ivrResponse, err := ivr.RandomQuote(target, username) if err != nil { diff --git a/pkg/commands/subage.go b/pkg/commands/subage.go index 9e0ce95..dc696cc 100644 --- a/pkg/commands/subage.go +++ b/pkg/commands/subage.go @@ -7,7 +7,7 @@ import ( "github.com/lyx0/nourybot/pkg/api/ivr" ) -func Subage(channel string, username string, streamer string, nb *bot.Bot) { +func Subage(channel, username, streamer string, nb *bot.Bot) { ivrResponse, err := ivr.Subage(username, streamer) if err != nil { diff --git a/pkg/commands/thumbnail.go b/pkg/commands/thumbnail.go index 05f8535..fc1cc97 100644 --- a/pkg/commands/thumbnail.go +++ b/pkg/commands/thumbnail.go @@ -7,7 +7,7 @@ import ( "github.com/lyx0/nourybot/pkg/utils" ) -func Thumbnail(channel string, target string, nb *bot.Bot) { +func Thumbnail(channel, target string, nb *bot.Bot) { imageHeight := utils.GenerateRandomNumberRange(1040, 1080) imageWidth := utils.GenerateRandomNumberRange(1890, 1920) diff --git a/pkg/commands/title.go b/pkg/commands/title.go index 20c5c45..b9b409e 100644 --- a/pkg/commands/title.go +++ b/pkg/commands/title.go @@ -8,7 +8,7 @@ import ( log "github.com/sirupsen/logrus" ) -func Title(channel string, target string, nb *bot.Bot) { +func Title(channel, target string, nb *bot.Bot) { title, err := aiden.ApiCall(fmt.Sprintf("api/v1/twitch/channel/%s/title", target)) if err != nil { diff --git a/pkg/commands/uptime.go b/pkg/commands/uptime.go index fd6cea1..5bb4618 100644 --- a/pkg/commands/uptime.go +++ b/pkg/commands/uptime.go @@ -8,7 +8,7 @@ import ( log "github.com/sirupsen/logrus" ) -func Uptime(channel string, name string, nb *bot.Bot) { +func Uptime(channel, name string, nb *bot.Bot) { resp, err := aiden.ApiCall(fmt.Sprintf("api/v1/twitch/channel/%s/uptime", name)) if err != nil { diff --git a/pkg/commands/userid.go b/pkg/commands/userid.go index 85c844f..14b380b 100644 --- a/pkg/commands/userid.go +++ b/pkg/commands/userid.go @@ -5,7 +5,7 @@ import ( "github.com/lyx0/nourybot/pkg/api/ivr" ) -func Userid(channel string, target string, nb *bot.Bot) { +func Userid(channel, target string, nb *bot.Bot) { reply := ivr.Userid(target) nb.Send(channel, reply) diff --git a/pkg/commands/weather.go b/pkg/commands/weather.go index 7922623..ea14049 100644 --- a/pkg/commands/weather.go +++ b/pkg/commands/weather.go @@ -8,7 +8,7 @@ import ( log "github.com/sirupsen/logrus" ) -func Weather(channel string, location string, nb *bot.Bot) { +func Weather(channel, location string, nb *bot.Bot) { reply, err := aiden.ApiCall(fmt.Sprintf("api/v1/misc/weather/%s", location)) if err != nil {