feat: Remove unused comments
This commit is contained in:
parent
58e7d54658
commit
179f18506f
3 changed files with 1 additions and 15 deletions
|
@ -1,8 +1,6 @@
|
||||||
package commands
|
package commands
|
||||||
|
|
||||||
import (
|
import (
|
||||||
// "fmt"
|
|
||||||
|
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/bwmarrin/discordgo"
|
"github.com/bwmarrin/discordgo"
|
||||||
|
@ -71,14 +69,6 @@ func (d *DiscommandStruct) LoadCommand(c *Command) {
|
||||||
mutex.Unlock()
|
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) {
|
func (d *DiscommandStruct) MessageRun(name string, s *discordgo.Session, m *discordgo.MessageCreate, args []string) {
|
||||||
command := d.Commands[name]
|
command := d.Commands[name]
|
||||||
if command == nil {
|
if command == nil {
|
||||||
|
|
|
@ -78,7 +78,7 @@ func learnRun(c *Command, s *discordgo.Session, m any, args *[]string) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "예시",
|
Name: "예시",
|
||||||
Value: strings.Join(addPrefix(c.DetailedDescription.Examples), "\n"),
|
Value: utils.InlineCode(strings.Join(addPrefix(c.DetailedDescription.Examples), "\n")),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Color: int(utils.EFail),
|
Color: int(utils.EFail),
|
||||||
|
|
4
main.go
4
main.go
|
@ -36,10 +36,6 @@ func main() {
|
||||||
|
|
||||||
dg.Open()
|
dg.Open()
|
||||||
|
|
||||||
for _, command := range commands.Discommand.Commands {
|
|
||||||
dg.ApplicationCommandCreate(dg.State.User.ID, "", command.ApplicationCommand)
|
|
||||||
}
|
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := databases.Client.Disconnect(context.TODO()); err != nil {
|
if err := databases.Client.Disconnect(context.TODO()); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Reference in a new issue