From 4c94cb4cfd4a5a0a228c96ada1e84acca76fe445 Mon Sep 17 00:00:00 2001
From: Siwoo Jeon <me@migan.co.kr>
Date: Fri, 28 Mar 2025 22:18:26 +0900
Subject: [PATCH] fix: Add replace _ to blank

---
 commands/learn.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commands/learn.go b/commands/learn.go
index 98d4de1..511b1d7 100644
--- a/commands/learn.go
+++ b/commands/learn.go
@@ -62,8 +62,8 @@ func (c *Command) learnRun(s *discordgo.Session, m any) {
 
 		if len(matches) < 2 {
 			content := strings.TrimPrefix(m.Content, configs.Config.Bot.Prefix)
-			command = strings.Split(content, " ")[1]
-			result = strings.Split(content, " ")[2]
+			command = strings.ReplaceAll(strings.Split(content, " ")[1], "_", "")
+			result = strings.ReplaceAll(strings.Split(content, " ")[2], "_", "")
 
 			if command == "" || result == "" {
 				s.ChannelMessageSendEmbedReply(m.ChannelID, &discordgo.MessageEmbed{