Debugging
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user