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)
return
case "8ball":
commands.EightBall(target, nb)
return
case "bot":
commands.Help(target, nb)
return
@ -75,6 +79,10 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
// commands.BttvEmotes(target, nb)
// return
case "cat":
commands.RandomCat(target, nb)
return
case "cf":
commands.Coinflip(target, nb)
return
@ -95,8 +103,12 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.CommandsList(target, nb)
return
case "mycolor":
commands.Color(message, nb)
case "dog":
commands.RandomDog(target, nb)
return
case "duck":
commands.RandomDuck(target, nb)
return
case "currency":
@ -111,10 +123,6 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Echo(target, message.Message[7:len(message.Message)], nb)
return
case "8ball":
commands.EightBall(target, nb)
return
case "emote":
commands.EmoteLookup(target, cmdParams[1], nb)
@ -141,22 +149,6 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
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":
if msgLen == 1 {
nb.Send(target, "Usage: ()firstline [channel] [user]")
@ -190,6 +182,10 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
return
}
case "fox":
commands.RandomFox(target, nb)
return
case "game":
if msgLen == 1 {
nb.Send(target, "Usage: ()game [channel]")
@ -219,6 +215,18 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "help":
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":
commands.Help(target, nb)
@ -234,6 +242,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.RandomNumber(target, nb)
} else {
commands.Number(target, cmdParams[1], nb)
}
case "osrs":
if msgLen == 1 {
@ -244,6 +253,14 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
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":
commands.Ping(target, nb)
return
@ -292,30 +309,14 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.RandomCat(target, nb)
return
case "cat":
commands.RandomCat(target, nb)
return
case "randomdog":
commands.RandomDog(target, nb)
return
case "dog":
commands.RandomDog(target, nb)
return
case "randomduck":
commands.RandomDuck(target, nb)
return
case "duck":
commands.RandomDuck(target, nb)
return
case "fox":
commands.RandomFox(target, nb)
return
case "randomfox":
commands.RandomFox(target, nb)
return