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