diff --git a/pkg/commands/commandslist.go b/pkg/commands/commandslist.go index 5ea3d08..6c33b1e 100644 --- a/pkg/commands/commandslist.go +++ b/pkg/commands/commandslist.go @@ -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) } diff --git a/pkg/handlers/command.go b/pkg/handlers/command.go index 39a7cfc..71d5b49 100644 --- a/pkg/handlers/command.go +++ b/pkg/handlers/command.go @@ -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