Browse Source

Debugging

master
Gregory Rudolph 4 years ago
parent
commit
5dc1f53a59
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 1
      auth.go
  2. 1
      commands.go

1
auth.go

@ -188,6 +188,7 @@ func idFromUsername(username string) string { @@ -188,6 +188,7 @@ func idFromUsername(username string) string {
}
func isAdmin(m *discordgo.Member) bool {
log.LogDebug("Checking %+v for %+v", m.Roles, config.AdminRole)
for role := range m.Roles {
if fmt.Sprintf("%+v", role) == config.AdminRole {
return true

1
commands.go

@ -83,6 +83,7 @@ func Commands(b BotCommand) bool { @@ -83,6 +83,7 @@ func Commands(b BotCommand) bool {
print += fmt.Sprintf("```%+v\n%+v\n%+v```\n", cmd.Name, cmd.Keywords, cmd.Help)
}
}
b.Session.ChannelMessageSend(b.Message.ChannelID, print)
return true
}

Loading…
Cancel
Save