set default command category to uncategorized instead of default

This commit is contained in:
lyx0 2022-08-15 13:53:07 +02:00
parent 96eedbe293
commit 4125967c63
2 changed files with 3 additions and 3 deletions

View file

@ -97,8 +97,8 @@ func (app *Application) EditCommandLevel(name, lvl string, message twitch.Privat
}
}
// EditCommandLevel takes in a name and level string and updates the entry with name
// to the supplied level value.
// EditCommandCategory takes in a name and category string and updates the command
// in the databse with the passed in new category.
func (app *Application) EditCommandCategory(name, category string, message twitch.PrivateMessage) {
err := app.Models.Commands.SetCategory(name, category)

View file

@ -99,7 +99,7 @@ func (c CommandModel) SetLevel(name string, level int) error {
// Insert adds a command into the database.
func (c CommandModel) Insert(name, text string) error {
perms := 0
category := "default"
category := "uncategorized"
query := `
INSERT into commands(name, text, category, level)
VALUES ($1, $2, $3, $4)