feat: Remove unused comments

This commit is contained in:
Siwoo Jeon 2025-03-30 20:40:13 +09:00
parent 58e7d54658
commit 179f18506f
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
3 changed files with 1 additions and 15 deletions

View file

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

View file

@ -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),

View file

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