removed unused code

This commit is contained in:
Chris kerr 2024-04-27 22:32:56 -04:00
parent 2e789b1f26
commit ca17df83d1

24
main.go
View File

@ -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.")
// }
// }
//}