From 526af293916d80e572f4cf0cd35da0380b933be1 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 6 May 2021 06:55:15 -0400 Subject: [PATCH] Debugging --- discordMessage.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discordMessage.go b/discordMessage.go index 1cbb167..0db0fa9 100644 --- a/discordMessage.go +++ b/discordMessage.go @@ -60,11 +60,15 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { if !cmd.RequiresAdmin { if !cmd.Exec(b) { s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("There was an error running %+v\n%+v", cmd.Name, cmd.Help)) + } else { + log.LogInfo("Ran command %+v for %+v", cmd.Name, m.Author.Username) } } else { if isAdmin(m.Member) { if !cmd.Exec(b) { s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("There was an error running %+v\n%+v", cmd.Name, cmd.Help)) + } else { + log.LogInfo("Ran command %+v for %+v", cmd.Name, m.Author.Username) } } }