fix: help command error
This commit is contained in:
parent
ec429b5c6e
commit
afbab98a6b
3 changed files with 10 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
||||||
package commands
|
package commands
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"git.wh64.net/muffin/goMuffin/chatbot"
|
"git.wh64.net/muffin/goMuffin/chatbot"
|
||||||
|
"git.wh64.net/muffin/goMuffin/configs"
|
||||||
"git.wh64.net/muffin/goMuffin/utils"
|
"git.wh64.net/muffin/goMuffin/utils"
|
||||||
"github.com/bwmarrin/discordgo"
|
"github.com/bwmarrin/discordgo"
|
||||||
)
|
)
|
||||||
|
@ -13,6 +15,9 @@ var ReloadPromptCommand *Command = &Command{
|
||||||
Name: "프롬프트재설정",
|
Name: "프롬프트재설정",
|
||||||
Description: "프롬프트를 다시 불러와요.",
|
Description: "프롬프트를 다시 불러와요.",
|
||||||
},
|
},
|
||||||
|
DetailedDescription: &DetailedDescription{
|
||||||
|
Usage: fmt.Sprintf("%s프롬프트재설정", configs.Config.Bot.Prefix),
|
||||||
|
},
|
||||||
Category: DeveloperOnly,
|
Category: DeveloperOnly,
|
||||||
RegisterApplicationCommand: false,
|
RegisterApplicationCommand: false,
|
||||||
MessageRun: func(ctx *MsgContext) {
|
MessageRun: func(ctx *MsgContext) {
|
||||||
|
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.wh64.net/muffin/goMuffin/chatbot"
|
"git.wh64.net/muffin/goMuffin/chatbot"
|
||||||
|
"git.wh64.net/muffin/goMuffin/configs"
|
||||||
"git.wh64.net/muffin/goMuffin/utils"
|
"git.wh64.net/muffin/goMuffin/utils"
|
||||||
"github.com/bwmarrin/discordgo"
|
"github.com/bwmarrin/discordgo"
|
||||||
)
|
)
|
||||||
|
@ -13,6 +14,9 @@ var SwitchModeCommand *Command = &Command{
|
||||||
Name: "모드전환",
|
Name: "모드전환",
|
||||||
Description: "머핀봇의 대답을 변경합니다.",
|
Description: "머핀봇의 대답을 변경합니다.",
|
||||||
},
|
},
|
||||||
|
DetailedDescription: &DetailedDescription{
|
||||||
|
Usage: fmt.Sprintf("%s모드전환", configs.Config.Bot.Prefix),
|
||||||
|
},
|
||||||
Category: DeveloperOnly,
|
Category: DeveloperOnly,
|
||||||
RegisterApplicationCommand: false,
|
RegisterApplicationCommand: false,
|
||||||
MessageRun: func(ctx *MsgContext) {
|
MessageRun: func(ctx *MsgContext) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"git.wh64.net/muffin/goMuffin/utils"
|
"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]
|
var updatedString string = utils.RegexpDecimals.FindAllStringSubmatch(MUFFIN_VERSION, -1)[3][0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue