fix: help command error

This commit is contained in:
Siwoo Jeon 2025-06-01 13:58:42 +09:00
parent ec429b5c6e
commit afbab98a6b
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
3 changed files with 10 additions and 1 deletions

View file

@ -1,9 +1,11 @@
package commands
import (
"fmt"
"log"
"git.wh64.net/muffin/goMuffin/chatbot"
"git.wh64.net/muffin/goMuffin/configs"
"git.wh64.net/muffin/goMuffin/utils"
"github.com/bwmarrin/discordgo"
)
@ -13,6 +15,9 @@ var ReloadPromptCommand *Command = &Command{
Name: "프롬프트재설정",
Description: "프롬프트를 다시 불러와요.",
},
DetailedDescription: &DetailedDescription{
Usage: fmt.Sprintf("%s프롬프트재설정", configs.Config.Bot.Prefix),
},
Category: DeveloperOnly,
RegisterApplicationCommand: false,
MessageRun: func(ctx *MsgContext) {

View file

@ -4,6 +4,7 @@ import (
"fmt"
"git.wh64.net/muffin/goMuffin/chatbot"
"git.wh64.net/muffin/goMuffin/configs"
"git.wh64.net/muffin/goMuffin/utils"
"github.com/bwmarrin/discordgo"
)
@ -13,6 +14,9 @@ var SwitchModeCommand *Command = &Command{
Name: "모드전환",
Description: "머핀봇의 대답을 변경합니다.",
},
DetailedDescription: &DetailedDescription{
Usage: fmt.Sprintf("%s모드전환", configs.Config.Bot.Prefix),
},
Category: DeveloperOnly,
RegisterApplicationCommand: false,
MessageRun: func(ctx *MsgContext) {

View file

@ -7,7 +7,7 @@ import (
"git.wh64.net/muffin/goMuffin/utils"
)
const MUFFIN_VERSION = "0.0.0-madeleine_canary.250530a-muffin-ai"
const MUFFIN_VERSION = "0.0.0-madeleine_canary.250601a-muffin-ai"
var updatedString string = utils.RegexpDecimals.FindAllStringSubmatch(MUFFIN_VERSION, -1)[3][0]