diff --git a/cmd/bot/command.go b/cmd/bot/command.go index ef87a9e..478ec54 100644 --- a/cmd/bot/command.go +++ b/cmd/bot/command.go @@ -114,7 +114,7 @@ func (app *Application) handleCommand(message twitch.PrivateMessage) { common.Send(target, "Not enough arguments provided.", app.TwitchClient) return } else if cmdParams[1] == "level" { - app.EditCommand(cmdParams[2], cmdParams[3], message) + app.EditCommandLevel(cmdParams[2], cmdParams[3], message) return } else { return diff --git a/cmd/bot/commands.go b/cmd/bot/commands.go index bcb2846..d715676 100644 --- a/cmd/bot/commands.go +++ b/cmd/bot/commands.go @@ -66,7 +66,7 @@ func (app *Application) GetCommand(name, username string) (string, error) { } -func (app *Application) EditCommand(name, lvl string, message twitch.PrivateMessage) { +func (app *Application) EditCommandLevel(name, lvl string, message twitch.PrivateMessage) { level, err := strconv.Atoi(lvl) if err != nil {