sort commands list

This commit is contained in:
lyx0 2021-10-28 18:15:17 +02:00
parent 37d8296e40
commit 92ab22e4b0

View file

@ -46,6 +46,10 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.SevenTV(target, cmdParams[1], nb) commands.SevenTV(target, cmdParams[1], nb)
return return
case "8ball":
commands.EightBall(target, nb)
return
case "bot": case "bot":
commands.Help(target, nb) commands.Help(target, nb)
return return
@ -75,6 +79,10 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
// commands.BttvEmotes(target, nb) // commands.BttvEmotes(target, nb)
// return // return
case "cat":
commands.RandomCat(target, nb)
return
case "cf": case "cf":
commands.Coinflip(target, nb) commands.Coinflip(target, nb)
return return
@ -95,8 +103,12 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.CommandsList(target, nb) commands.CommandsList(target, nb)
return return
case "mycolor": case "dog":
commands.Color(message, nb) commands.RandomDog(target, nb)
return
case "duck":
commands.RandomDuck(target, nb)
return return
case "currency": case "currency":
@ -111,10 +123,6 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Echo(target, message.Message[7:len(message.Message)], nb) commands.Echo(target, message.Message[7:len(message.Message)], nb)
return return
case "8ball":
commands.EightBall(target, nb)
return
case "emote": case "emote":
commands.EmoteLookup(target, cmdParams[1], nb) commands.EmoteLookup(target, cmdParams[1], nb)
@ -141,22 +149,6 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
return return
} }
case "join":
if msgLen == 1 || message.User.ID != "31437432" {
nb.Send(target, "You are not allowed to do this")
return
}
db.AddChannel(target, cmdParams[1], nb)
return
case "part":
if msgLen == 1 || message.User.ID != "31437432" {
nb.Send(target, "You are not allowed to do this")
return
}
db.PartChannel(target, cmdParams[1], nb)
return
case "firstline": case "firstline":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()firstline [channel] [user]") nb.Send(target, "Usage: ()firstline [channel] [user]")
@ -190,6 +182,10 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
return return
} }
case "fox":
commands.RandomFox(target, nb)
return
case "game": case "game":
if msgLen == 1 { if msgLen == 1 {
nb.Send(target, "Usage: ()game [channel]") nb.Send(target, "Usage: ()game [channel]")
@ -219,6 +215,18 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "help": case "help":
commands.Help(target, nb) commands.Help(target, nb)
case "join":
if msgLen == 1 || message.User.ID != "31437432" {
nb.Send(target, "You are not allowed to do this")
return
}
db.AddChannel(target, cmdParams[1], nb)
return
case "mycolor":
commands.Color(message, nb)
return
case "nourybot": case "nourybot":
commands.Help(target, nb) commands.Help(target, nb)
@ -234,6 +242,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.RandomNumber(target, nb) commands.RandomNumber(target, nb)
} else { } else {
commands.Number(target, cmdParams[1], nb) commands.Number(target, cmdParams[1], nb)
} }
case "osrs": case "osrs":
if msgLen == 1 { if msgLen == 1 {
@ -244,6 +253,14 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
return return
} }
case "part":
if msgLen == 1 || message.User.ID != "31437432" {
nb.Send(target, "You are not allowed to do this")
return
}
db.PartChannel(target, cmdParams[1], nb)
return
case "ping": case "ping":
commands.Ping(target, nb) commands.Ping(target, nb)
return return
@ -292,30 +309,14 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.RandomCat(target, nb) commands.RandomCat(target, nb)
return return
case "cat":
commands.RandomCat(target, nb)
return
case "randomdog": case "randomdog":
commands.RandomDog(target, nb) commands.RandomDog(target, nb)
return return
case "dog":
commands.RandomDog(target, nb)
return
case "randomduck": case "randomduck":
commands.RandomDuck(target, nb) commands.RandomDuck(target, nb)
return return
case "duck":
commands.RandomDuck(target, nb)
return
case "fox":
commands.RandomFox(target, nb)
return
case "randomfox": case "randomfox":
commands.RandomFox(target, nb) commands.RandomFox(target, nb)
return return