fix: Add replace _ to blank
This commit is contained in:
parent
e2c85c1ccb
commit
4c94cb4cfd
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ func (c *Command) learnRun(s *discordgo.Session, m any) {
|
||||||
|
|
||||||
if len(matches) < 2 {
|
if len(matches) < 2 {
|
||||||
content := strings.TrimPrefix(m.Content, configs.Config.Bot.Prefix)
|
content := strings.TrimPrefix(m.Content, configs.Config.Bot.Prefix)
|
||||||
command = strings.Split(content, " ")[1]
|
command = strings.ReplaceAll(strings.Split(content, " ")[1], "_", "")
|
||||||
result = strings.Split(content, " ")[2]
|
result = strings.ReplaceAll(strings.Split(content, " ")[2], "_", "")
|
||||||
|
|
||||||
if command == "" || result == "" {
|
if command == "" || result == "" {
|
||||||
s.ChannelMessageSendEmbedReply(m.ChannelID, &discordgo.MessageEmbed{
|
s.ChannelMessageSendEmbedReply(m.ChannelID, &discordgo.MessageEmbed{
|
||||||
|
|
Loading…
Reference in a new issue