actually add general help commands

This commit is contained in:
lyx0 2021-10-23 22:15:29 +02:00
parent 283e596af6
commit 33cfd3feb5
2 changed files with 17 additions and 1 deletions

View file

@ -5,5 +5,5 @@ import "github.com/lyx0/nourybot/cmd/bot"
func CommandsList(target string, nb *bot.Bot) {
reply := "https://gist.github.com/lyx0/6e326451ed9602157fcf6b5e40fb1dfd"
nb.Send(reply, target)
nb.Send(target, reply)
}

View file

@ -35,8 +35,17 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "":
if msgLen == 1 {
nb.Send(target, "xd")
return
}
case "bot":
commands.Help(target, nb)
return
case "botinfo":
commands.Help(target, nb)
return
case "botstatus":
if msgLen == 1 {
nb.Send(target, "Usage: ()botstatus [username]")
@ -74,6 +83,10 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
commands.Color(message, nb)
return
case "commands":
commands.CommandsList(target, nb)
return
case "mycolor":
commands.Color(message, nb)
return
@ -180,6 +193,8 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "help":
commands.Help(target, nb)
case "nourybot":
commands.Help(target, nb)
case "num":
if msgLen == 1 {
@ -302,6 +317,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
case "robo":
commands.RoboHash(target, message, nb)
return
case "robohash":
commands.RoboHash(target, message, nb)
return