|
|
|
@ -154,7 +154,7 @@ func runPurge(s *discordgo.Session) {
@@ -154,7 +154,7 @@ func runPurge(s *discordgo.Session) {
|
|
|
|
|
|
|
|
|
|
func ready(s *discordgo.Session, event *discordgo.Ready) { |
|
|
|
|
// Set the playing status.
|
|
|
|
|
s.UpdateStatus(0, "DreamDaddy v1.1") |
|
|
|
|
s.UpdateStatus(0, "DreamDaddy v1.2") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { |
|
|
|
@ -205,8 +205,13 @@ func guildMemberRemove(s *discordgo.Session, m *discordgo.GuildMemberRemove) {
@@ -205,8 +205,13 @@ func guildMemberRemove(s *discordgo.Session, m *discordgo.GuildMemberRemove) {
|
|
|
|
|
delete(config.Probations, uid) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
delete(config.Unverified, m.User.ID) |
|
|
|
|
s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("%+v (@%+v) has left, ban: %+v", m.User.ID, m.User.Username, banned)) |
|
|
|
|
delete(config.Unverified, m.User.ID) |
|
|
|
|
for msg, v := range config.Verifications { |
|
|
|
|
if v.UserID == m.User.ID { |
|
|
|
|
delete(config.Verifications, msg) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
saveConfig() |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|