From 91269265d94f5b5728c02b8bbc310bb08d1276b7 Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Thu, 17 Apr 2025 19:40:19 +0900 Subject: [PATCH] fix: typo --- commands/dataLength.go | 2 -- commands/deleteLearnedData.go | 2 +- commands/help.go | 2 +- commands/learn.go | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/commands/dataLength.go b/commands/dataLength.go index 0c59a5b..930ae9c 100644 --- a/commands/dataLength.go +++ b/commands/dataLength.go @@ -124,8 +124,6 @@ func dataLengthRun(s *discordgo.Session, m any) { sum := textLength + learnLength - // 나중에 djs처럼 Embed 만들어 주는 함수 만들어야겠다 - // 지금은 임시방편 embed := &discordgo.MessageEmbed{ Title: "저장된 데이터량", Description: fmt.Sprintf("총합: %s개", utils.InlineCode(strconv.Itoa(sum))), diff --git a/commands/deleteLearnedData.go b/commands/deleteLearnedData.go index 8e6b4c6..1db9427 100644 --- a/commands/deleteLearnedData.go +++ b/commands/deleteLearnedData.go @@ -29,7 +29,7 @@ var DeleteLearnedDataCommand *Command = &Command{ Usage: fmt.Sprintf("%s삭제 (삭제할 단어)", configs.Config.Bot.Prefix), Examples: []string{fmt.Sprintf("%s삭제 머핀", configs.Config.Bot.Prefix)}, }, - Category: Chattings, + Category: Chatting, MessageRun: func(ctx *MsgContext) { deleteLearnedDataRun(ctx.Command, ctx.Session, ctx.Msg, &ctx.Args) }, diff --git a/commands/help.go b/commands/help.go index b87aa8c..9ea9bd1 100644 --- a/commands/help.go +++ b/commands/help.go @@ -77,7 +77,7 @@ func helpRun(c *Command, s *discordgo.Session, m any, args *[]string) { "md", fmt.Sprintf("# 일반\n%s\n\n# 채팅\n%s", strings.Join(getCommandsByCategory(Discommand, Generals), "\n"), - strings.Join(getCommandsByCategory(Discommand, Chattings), "\n")), + strings.Join(getCommandsByCategory(Discommand, Chatting), "\n")), ) switch m := m.(type) { diff --git a/commands/learn.go b/commands/learn.go index 6003e25..130fa76 100644 --- a/commands/learn.go +++ b/commands/learn.go @@ -55,7 +55,7 @@ var LearnCommand *Command = &Command{ fmt.Sprintf("%s배워 \"나의 아이디를 알려줘\" \"너의 아이디는 {user.id}야.\"", configs.Config.Bot.Prefix), }, }, - Category: Chattings, + Category: Chatting, MessageRun: func(ctx *MsgContext) { learnRun(ctx.Command, ctx.Session, ctx.Msg, &ctx.Args) },