mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add general help commands
This commit is contained in:
parent
43daa7ca44
commit
283e596af6
3 changed files with 22 additions and 0 deletions
9
pkg/commands/commandslist.go
Normal file
9
pkg/commands/commandslist.go
Normal 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
9
pkg/commands/help.go
Normal 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)
|
||||
}
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue