|
|
@ -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() |
|
|
|