Cleanup admin check

This commit is contained in:
2021-05-05 23:13:32 -04:00
parent 77b6e9c780
commit 81f7d3ccdc

View File

@ -31,11 +31,9 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
}
return
}
for role := range m.Member.Roles {
if fmt.Sprintf("%+v", role) == config.AdminRole {
if isAdmin(m.Member) {
adminInteraction(s, m.Author.ID)
}
}
if m.ChannelID != config.AdminChannel {
lastActiveChan = m.ChannelID
lastActiveTime = time.Now()