This commit is contained in:
lyx0 2021-10-23 21:33:22 +02:00
parent 4dcef064b6
commit aa87843471
7 changed files with 4 additions and 11 deletions

View file

@ -16,8 +16,6 @@ type randomQuoteApiResponse struct {
Error string `json:"Error"`
}
var ()
// FirstLine returns the first line a given user has sent in a
// given channel.
func RandomQuote(channel string, username string) (string, error) {

View file

@ -6,12 +6,11 @@ import (
"github.com/sirupsen/logrus"
)
// commands.Currency(target, cmdParams[1], cmdParams[2], cmdParams[4], nb)
func Currency(target string, currAmount string, currFrom string, currTo string, nb *bot.Bot) {
reply, err := api.Currency(currAmount, currFrom, currTo)
if err != nil {
logrus.Info(err)
}
nb.Send(target, reply)
// logrus.Info(target, reply)
}

View file

@ -8,7 +8,6 @@ import (
)
func EmoteLookup(channel string, emote string, nb *bot.Bot) {
reply, err := ivr.EmoteLookup(emote)
if err != nil {

View file

@ -17,6 +17,5 @@ func Game(channel string, name string, nb *bot.Bot) {
}
reply := fmt.Sprintf("@%s was last seen playing: %s", name, game)
nb.Send(channel, reply)
}

View file

@ -5,7 +5,6 @@ import (
"github.com/lyx0/nourybot/cmd/bot"
"github.com/lyx0/nourybot/pkg/api/ivr"
"github.com/sirupsen/logrus"
)
func RandomQuote(channel string, target string, username string, nb *bot.Bot) {
@ -16,6 +15,5 @@ func RandomQuote(channel string, target string, username string, nb *bot.Bot) {
return
}
logrus.Info(ivrResponse)
nb.Send(channel, ivrResponse)
}

View file

@ -9,6 +9,6 @@ import (
func RoboHash(target string, message twitch.PrivateMessage, nb *bot.Bot) {
reply := fmt.Sprintf("https://robohash.org/%s", message.ID)
nb.Send(target, reply)
nb.Send(target, reply)
}

View file

@ -290,10 +290,10 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "subage":
if msgLen < 3 {
nb.Send(target, "Usage: ()subage [user] [streamer]")
nb.Send(target, "Usage: ()subage [streamer] [user]")
return
} else {
commands.Subage(target, cmdParams[1], cmdParams[2], nb)
commands.Subage(target, cmdParams[2], cmdParams[1], nb)
return
}