diff --git a/pkg/commands/pyramid.go b/pkg/commands/pyramid.go index 4d02653..1978146 100644 --- a/pkg/commands/pyramid.go +++ b/pkg/commands/pyramid.go @@ -31,8 +31,8 @@ func Pyramid(channel, size, emote string, nb *bot.Bot) { return } - if pyramidSize > 20 { - nb.Send(channel, "Max pyramid size is 20") + if pyramidSize > 3 { + nb.Send(channel, "Max pyramid size is 3") return } diff --git a/pkg/handlers/command.go b/pkg/handlers/command.go index 4b973da..71af016 100644 --- a/pkg/handlers/command.go +++ b/pkg/handlers/command.go @@ -70,9 +70,9 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) { commands.Bttv(target, cmdParams[1], nb) return - case "bttvemotes": - commands.BttvEmotes(target, nb) - return + // case "bttvemotes": + // commands.BttvEmotes(target, nb) + // return case "cf": commands.Coinflip(target, nb) @@ -126,9 +126,10 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) { return } commands.Ffz(target, cmdParams[1], nb) - case "ffzemotes": - commands.FfzEmotes(target, nb) - return + + // case "ffzemotes": + // commands.FfzEmotes(target, nb) + // return case "fill": if msgLen == 1 { @@ -200,8 +201,8 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) { case "help": commands.Help(target, nb) - case "nourybot": + case "nourybot": commands.Help(target, nb) case "num": @@ -253,14 +254,14 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) { commands.ProfilePicture(target, cmdParams[1], nb) return - case "pyramid": - if msgLen != 3 { - nb.Send(target, "Usage: ()pyramid [size] [emote]") - } else if utils.ElevatedPrivsMessage(message) { - commands.Pyramid(target, cmdParams[1], cmdParams[2], nb) - } else { - nb.Send(target, "Pleb's can't pyramid FeelsBadMan") - } + // case "pyramid": + // if msgLen != 3 { + // nb.Send(target, "Usage: ()pyramid [size] [emote]") + // } else if utils.ElevatedPrivsMessage(message) { + // commands.Pyramid(target, cmdParams[1], cmdParams[2], nb) + // } else { + // nb.Send(target, "Pleb's can't pyramid FeelsBadMan") + // } case "randomcat": commands.RandomCat(target, nb) diff --git a/pkg/handlers/privatemessage.go b/pkg/handlers/privatemessage.go index b3de8c8..d8ab7f4 100644 --- a/pkg/handlers/privatemessage.go +++ b/pkg/handlers/privatemessage.go @@ -10,7 +10,7 @@ import ( // commands to the command handler. func PrivateMessage(message twitch.PrivateMessage, nb *bot.Bot) { // log.Info("fn PrivateMessage") - // log.Info(message) + log.Info(message.Raw) // roomId is the Twitch UserID of the channel the message // was sent in. @@ -22,6 +22,12 @@ func PrivateMessage(message twitch.PrivateMessage, nb *bot.Bot) { return } + if message.Channel == "nourybot" && message.Message == "pajaS 🚨 ALERT" && message.User.Name == "nouryqt" { + log.Info(message.Message) + nb.SkipChecking("nourybot", "XD test") + return + } + // Since our command prefix is () ignore every message // that is less than 2 if len(message.Message) >= 2 {