mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
cleanup
This commit is contained in:
parent
4dcef064b6
commit
aa87843471
|
@ -16,8 +16,6 @@ type randomQuoteApiResponse struct {
|
||||||
Error string `json:"Error"`
|
Error string `json:"Error"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var ()
|
|
||||||
|
|
||||||
// FirstLine returns the first line a given user has sent in a
|
// FirstLine returns the first line a given user has sent in a
|
||||||
// given channel.
|
// given channel.
|
||||||
func RandomQuote(channel string, username string) (string, error) {
|
func RandomQuote(channel string, username string) (string, error) {
|
||||||
|
|
|
@ -6,12 +6,11 @@ import (
|
||||||
"github.com/sirupsen/logrus"
|
"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) {
|
func Currency(target string, currAmount string, currFrom string, currTo string, nb *bot.Bot) {
|
||||||
reply, err := api.Currency(currAmount, currFrom, currTo)
|
reply, err := api.Currency(currAmount, currFrom, currTo)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Info(err)
|
logrus.Info(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
nb.Send(target, reply)
|
nb.Send(target, reply)
|
||||||
// logrus.Info(target, reply)
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func EmoteLookup(channel string, emote string, nb *bot.Bot) {
|
func EmoteLookup(channel string, emote string, nb *bot.Bot) {
|
||||||
|
|
||||||
reply, err := ivr.EmoteLookup(emote)
|
reply, err := ivr.EmoteLookup(emote)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -17,6 +17,5 @@ func Game(channel string, name string, nb *bot.Bot) {
|
||||||
}
|
}
|
||||||
|
|
||||||
reply := fmt.Sprintf("@%s was last seen playing: %s", name, game)
|
reply := fmt.Sprintf("@%s was last seen playing: %s", name, game)
|
||||||
|
|
||||||
nb.Send(channel, reply)
|
nb.Send(channel, reply)
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@ import (
|
||||||
|
|
||||||
"github.com/lyx0/nourybot/cmd/bot"
|
"github.com/lyx0/nourybot/cmd/bot"
|
||||||
"github.com/lyx0/nourybot/pkg/api/ivr"
|
"github.com/lyx0/nourybot/pkg/api/ivr"
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func RandomQuote(channel string, target string, username string, nb *bot.Bot) {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
logrus.Info(ivrResponse)
|
|
||||||
nb.Send(channel, ivrResponse)
|
nb.Send(channel, ivrResponse)
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,6 @@ import (
|
||||||
|
|
||||||
func RoboHash(target string, message twitch.PrivateMessage, nb *bot.Bot) {
|
func RoboHash(target string, message twitch.PrivateMessage, nb *bot.Bot) {
|
||||||
reply := fmt.Sprintf("https://robohash.org/%s", message.ID)
|
reply := fmt.Sprintf("https://robohash.org/%s", message.ID)
|
||||||
nb.Send(target, reply)
|
|
||||||
|
|
||||||
|
nb.Send(target, reply)
|
||||||
}
|
}
|
||||||
|
|
|
@ -290,10 +290,10 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
|
||||||
|
|
||||||
case "subage":
|
case "subage":
|
||||||
if msgLen < 3 {
|
if msgLen < 3 {
|
||||||
nb.Send(target, "Usage: ()subage [user] [streamer]")
|
nb.Send(target, "Usage: ()subage [streamer] [user]")
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
commands.Subage(target, cmdParams[1], cmdParams[2], nb)
|
commands.Subage(target, cmdParams[2], cmdParams[1], nb)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue