diff --git a/discordEvents.go b/discordEvents.go index 0b143a8..0bedde1 100644 --- a/discordEvents.go +++ b/discordEvents.go @@ -18,7 +18,6 @@ func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { for _, role := range m.Roles { if fmt.Sprintf("%+v", role) == config.MonitorRole { log.LogDebug("Role found, Monitor Role") - 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() diff --git a/discordMessage.go b/discordMessage.go index 35e1e52..ecb75a1 100644 --- a/discordMessage.go +++ b/discordMessage.go @@ -137,10 +137,6 @@ func handlePM(s *discordgo.Session, m *discordgo.MessageCreate) { s.ChannelMessageSend(m.ChannelID, "You have tried to send an unsupported file (MP3 Audio). Please try again using an image (jpeg, jpg, png, etc).") return } - if !strings.HasSuffix(strings.ToUpper(m.Attachments[0].ProxyURL), "JPG") || !strings.HasSuffix(strings.ToUpper(m.Attachments[0].ProxyURL), "JPEG") || !strings.HasSuffix(strings.ToUpper(m.Attachments[0].ProxyURL), "PNG") || !strings.HasSuffix(strings.ToUpper(m.Attachments[0].ProxyURL), "BMP") { - s.ChannelMessageSend(config.AdminChannel, "You have tried to send an unsupported file. Please try again using an image (jpeg, jpg, png, etc).") - //return - } delete(config.Unverified, m.Author.ID) var v Verification v.Submitted = time.Now()