diff --git a/commands/discommand.go b/commands/discommand.go index da57e3f..b3c56ed 100644 --- a/commands/discommand.go +++ b/commands/discommand.go @@ -1,8 +1,6 @@ package commands import ( - // "fmt" - "sync" "github.com/bwmarrin/discordgo" @@ -71,14 +69,6 @@ func (d *DiscommandStruct) LoadCommand(c *Command) { mutex.Unlock() } -// func (d *DiscommandStruct) addMessageRun(name string, run messageRun) { -// d.messageRuns[name] = run -// } - -// func (d *DiscommandStruct) addChatInputRun(name string, run chatInputRun) { -// d.chatInputRuns[name] = run -// } - func (d *DiscommandStruct) MessageRun(name string, s *discordgo.Session, m *discordgo.MessageCreate, args []string) { command := d.Commands[name] if command == nil { diff --git a/commands/learn.go b/commands/learn.go index 5980cf0..6052dc4 100644 --- a/commands/learn.go +++ b/commands/learn.go @@ -78,7 +78,7 @@ func learnRun(c *Command, s *discordgo.Session, m any, args *[]string) { }, { Name: "예시", - Value: strings.Join(addPrefix(c.DetailedDescription.Examples), "\n"), + Value: utils.InlineCode(strings.Join(addPrefix(c.DetailedDescription.Examples), "\n")), }, }, Color: int(utils.EFail), diff --git a/main.go b/main.go index 35347d0..b03ec27 100644 --- a/main.go +++ b/main.go @@ -36,10 +36,6 @@ func main() { dg.Open() - for _, command := range commands.Discommand.Commands { - dg.ApplicationCommandCreate(dg.State.User.ID, "", command.ApplicationCommand) - } - defer func() { if err := databases.Client.Disconnect(context.TODO()); err != nil { panic(err)