simplify command creation

This commit is contained in:
lyx0 2023-03-03 23:26:11 +00:00
parent 6448c71fc1
commit e5a1b3553f

View file

@ -148,6 +148,15 @@ func (app *Application) handleCommand(message twitch.PrivateMessage) {
return return
} }
case "help":
if msgLen < 2 {
common.Send(target, "Not enough arguments provided. Usage: ()help <commandname>", app.TwitchClient)
return
} else {
commands.Preview(target, cmdParams[1], app.TwitchClient)
return
}
// ()ping // ()ping
case "ping": case "ping":
commands.Ping(target, app.TwitchClient) commands.Ping(target, app.TwitchClient)