Browse Source

Debugging

hkremer/rebranding
Gregory Rudolph 4 years ago
parent
commit
233cf6c3eb
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 3
      main.go

3
main.go

@ -160,13 +160,14 @@ func runPurge(s *discordgo.Session) {
func ready(s *discordgo.Session, event *discordgo.Ready) { func ready(s *discordgo.Session, event *discordgo.Ready) {
// Set the playing status. // Set the playing status.
s.UpdateStatus(0, "DreamDaddy v0.9") s.UpdateStatus(0, "DreamDaddy v0.10")
} }
func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) {
defer log.PanicSafe() defer log.PanicSafe()
for role := range m.Roles { for role := range m.Roles {
if fmt.Sprintf("%+v", role) == config.MonitorRole { if fmt.Sprintf("%+v", role) == config.MonitorRole {
s.ChannelMessageSend(config.AdminChannel, "New unverified user detected.")
config.Unverified[m.User.ID] = time.Now() config.Unverified[m.User.ID] = time.Now()
config.Probations[m.User.ID] = time.Now() config.Probations[m.User.ID] = time.Now()
saveConfig() saveConfig()

Loading…
Cancel
Save