fix: Add replace _ to blank

This commit is contained in:
Siwoo Jeon 2025-03-28 22:18:26 +09:00
parent e2c85c1ccb
commit 4c94cb4cfd
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA

View file

@ -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{