mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
actually add general help commands
This commit is contained in:
parent
283e596af6
commit
33cfd3feb5
2 changed files with 17 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue