fix: typo
This commit is contained in:
parent
60694a8705
commit
91269265d9
4 changed files with 3 additions and 5 deletions
|
@ -124,8 +124,6 @@ func dataLengthRun(s *discordgo.Session, m any) {
|
||||||
|
|
||||||
sum := textLength + learnLength
|
sum := textLength + learnLength
|
||||||
|
|
||||||
// 나중에 djs처럼 Embed 만들어 주는 함수 만들어야겠다
|
|
||||||
// 지금은 임시방편
|
|
||||||
embed := &discordgo.MessageEmbed{
|
embed := &discordgo.MessageEmbed{
|
||||||
Title: "저장된 데이터량",
|
Title: "저장된 데이터량",
|
||||||
Description: fmt.Sprintf("총합: %s개", utils.InlineCode(strconv.Itoa(sum))),
|
Description: fmt.Sprintf("총합: %s개", utils.InlineCode(strconv.Itoa(sum))),
|
||||||
|
|
|
@ -29,7 +29,7 @@ var DeleteLearnedDataCommand *Command = &Command{
|
||||||
Usage: fmt.Sprintf("%s삭제 (삭제할 단어)", configs.Config.Bot.Prefix),
|
Usage: fmt.Sprintf("%s삭제 (삭제할 단어)", configs.Config.Bot.Prefix),
|
||||||
Examples: []string{fmt.Sprintf("%s삭제 머핀", configs.Config.Bot.Prefix)},
|
Examples: []string{fmt.Sprintf("%s삭제 머핀", configs.Config.Bot.Prefix)},
|
||||||
},
|
},
|
||||||
Category: Chattings,
|
Category: Chatting,
|
||||||
MessageRun: func(ctx *MsgContext) {
|
MessageRun: func(ctx *MsgContext) {
|
||||||
deleteLearnedDataRun(ctx.Command, ctx.Session, ctx.Msg, &ctx.Args)
|
deleteLearnedDataRun(ctx.Command, ctx.Session, ctx.Msg, &ctx.Args)
|
||||||
},
|
},
|
||||||
|
|
|
@ -77,7 +77,7 @@ func helpRun(c *Command, s *discordgo.Session, m any, args *[]string) {
|
||||||
"md",
|
"md",
|
||||||
fmt.Sprintf("# 일반\n%s\n\n# 채팅\n%s",
|
fmt.Sprintf("# 일반\n%s\n\n# 채팅\n%s",
|
||||||
strings.Join(getCommandsByCategory(Discommand, Generals), "\n"),
|
strings.Join(getCommandsByCategory(Discommand, Generals), "\n"),
|
||||||
strings.Join(getCommandsByCategory(Discommand, Chattings), "\n")),
|
strings.Join(getCommandsByCategory(Discommand, Chatting), "\n")),
|
||||||
)
|
)
|
||||||
|
|
||||||
switch m := m.(type) {
|
switch m := m.(type) {
|
||||||
|
|
|
@ -55,7 +55,7 @@ var LearnCommand *Command = &Command{
|
||||||
fmt.Sprintf("%s배워 \"나의 아이디를 알려줘\" \"너의 아이디는 {user.id}야.\"", configs.Config.Bot.Prefix),
|
fmt.Sprintf("%s배워 \"나의 아이디를 알려줘\" \"너의 아이디는 {user.id}야.\"", configs.Config.Bot.Prefix),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Category: Chattings,
|
Category: Chatting,
|
||||||
MessageRun: func(ctx *MsgContext) {
|
MessageRun: func(ctx *MsgContext) {
|
||||||
learnRun(ctx.Command, ctx.Session, ctx.Msg, &ctx.Args)
|
learnRun(ctx.Command, ctx.Session, ctx.Msg, &ctx.Args)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue