add general help commands

This commit is contained in:
lyx0 2021-10-23 22:11:23 +02:00
parent 43daa7ca44
commit 283e596af6
3 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,9 @@
package commands
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)
}

9
pkg/commands/help.go Normal file
View file

@ -0,0 +1,9 @@
package commands
import "github.com/lyx0/nourybot/cmd/bot"
func Help(target string, nb *bot.Bot) {
reply := "Bot made in Go by @Nouryt, Prefix: (), Commands: https://gist.github.com/lyx0/6e326451ed9602157fcf6b5e40fb1dfd"
nb.Send(target, reply)
}

View file

@ -53,6 +53,7 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
}
commands.Bttv(target, cmdParams[1], nb)
return
case "bttvemotes":
commands.BttvEmotes(target, nb)
return
@ -177,6 +178,9 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) {
return
}
case "help":
commands.Help(target, nb)
case "num":
if msgLen == 1 {
commands.RandomNumber(target, nb)