mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
disable pyramid for now
This commit is contained in:
parent
377b4f710a
commit
d45649af98
3 changed files with 25 additions and 18 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue