|
|
@ -15,7 +15,7 @@ func ready(s *discordgo.Session, event *discordgo.Ready) { |
|
|
|
func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { |
|
|
|
func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { |
|
|
|
defer log.PanicSafe() |
|
|
|
defer log.PanicSafe() |
|
|
|
log.LogDebug("Member %+v has been updated", m.User.Username) |
|
|
|
log.LogDebug("Member %+v has been updated", m.User.Username) |
|
|
|
for role := range m.Roles { |
|
|
|
for _, role := range m.Roles { |
|
|
|
if fmt.Sprintf("%+v", role) == config.MonitorRole { |
|
|
|
if fmt.Sprintf("%+v", role) == config.MonitorRole { |
|
|
|
log.LogDebug("Role found, Monitor Role") |
|
|
|
log.LogDebug("Role found, Monitor Role") |
|
|
|
s.ChannelMessageSend(config.AdminChannel, "New unverified user detected.") |
|
|
|
s.ChannelMessageSend(config.AdminChannel, "New unverified user detected.") |
|
|
|