diff --git a/main.go b/main.go index 0956498..3f76215 100644 --- a/main.go +++ b/main.go @@ -164,11 +164,10 @@ func ready(s *discordgo.Session, event *discordgo.Ready) { func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { defer log.PanicSafe() - log.LogInfo("Calling guildMemberUpdate") - defer log.LogInfo("returning from guildMemberUpdate") for role := range m.Roles { if fmt.Sprintf("%+v", role) == config.MonitorRole { s.ChannelMessageSend(config.AdminChannel, "New unverified user detected.") + s.ChannelMessageSend(config.MonitorChann, fmt.Sprintf("Welcome %+v, you may PM me your verification, or I will ban you in an hour!\nSay \"!rules\" in this channel, without quotes for the rules. You may private/direct message me for verification instructions.\n\nYou will not be able to read/see other channels or users until you verify.", m.User.Mention())) config.Unverified[m.User.ID] = time.Now() config.Probations[m.User.ID] = time.Now() saveConfig() @@ -179,8 +178,6 @@ func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { func guildMemberAdd(s *discordgo.Session, m *discordgo.GuildMemberAdd) { defer log.PanicSafe() - log.LogInfo("calling guildMemberAdd") - defer log.LogInfo("Returning from guildMemberAdd") config.Unverified[m.User.ID] = time.Now() config.Probations[m.User.ID] = time.Now() s.GuildMemberRoleAdd(config.GuildID, m.User.ID, config.MonitorRole) @@ -200,8 +197,6 @@ func guildMemberBanned(s *discordgo.Session, m *discordgo.GuildBanAdd) { func guildMemberRemove(s *discordgo.Session, m *discordgo.GuildMemberRemove) { defer log.PanicSafe() - log.LogInfo("Calling guildMemberRemove") - defer log.LogInfo("returning from guildMemberRemove") go runPurge(s) banned := false for uid, join := range config.Probations {