diff --git a/main.go b/main.go index 8c28fdc..6d4eb93 100644 --- a/main.go +++ b/main.go @@ -242,27 +242,3 @@ func sendNotifications(session *discordgo.Session, html string, channelMap, role } } } - -// This function will be called whenever a new message is created -//func CommandHandler(s *discordgo.Session, m *discordgo.MessageCreate) { -// // Ignore messages created by the bot itself -// if m.Author.ID == s.State.User.ID { -// return -// } -// -// // Check if the message starts with a command prefix -// if strings.HasPrefix(m.Content, "!") { -// // Extract the command and arguments -// parts := strings.Fields(m.Content) -// command := parts[0] -// -// // Find the corresponding handler function in the map -// if handlerFunc, ok := commands.CommandMap[command]; ok { -// // Call the handler function -// handlerFunc(s, m) -// } else { -// // Respond to unknown commands -// _, _ = s.ChannelMessageSend(m.ChannelID, "Unknown command. Type !help for a list of commands.") -// } -// } -//}