feat: Fix find a command by help command

This commit is contained in:
Siwoo Jeon 2025-03-31 21:58:28 +09:00
parent 3229493226
commit dc2751f58f
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ func helpRun(c *Command, s *discordgo.Session, m any, args *[]string) {
switch m := m.(type) {
case *discordgo.MessageCreate:
commandName = strings.Join(*args, " ")
commandName = Discommand.Aliases[strings.Join(*args, " ")]
case *discordgo.InteractionCreate:
optsMap := map[string]*discordgo.ApplicationCommandInteractionDataOption{}
for _, opt := range m.ApplicationCommandData().Options {

View file

@ -7,7 +7,7 @@ import (
"git.wh64.net/muffin/goMuffin/utils"
)
const MUFFIN_VERSION = "0.0.0-gopher_canary.250330a"
const MUFFIN_VERSION = "0.0.0-gopher_canary.250331a"
var updatedString string = utils.Decimals.FindAllStringSubmatch(MUFFIN_VERSION, -1)[3][0]