This commit is contained in:
@ -18,7 +18,6 @@ func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) {
|
|||||||
for _, role := range m.Roles {
|
for _, role := range m.Roles {
|
||||||
if fmt.Sprintf("%+v", role) == config.MonitorRole {
|
if fmt.Sprintf("%+v", role) == config.MonitorRole {
|
||||||
log.LogDebug("Role found, Monitor Role")
|
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()))
|
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.Unverified[m.User.ID] = time.Now()
|
||||||
config.Probations[m.User.ID] = time.Now()
|
config.Probations[m.User.ID] = time.Now()
|
||||||
|
|||||||
@ -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).")
|
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
|
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)
|
delete(config.Unverified, m.Author.ID)
|
||||||
var v Verification
|
var v Verification
|
||||||
v.Submitted = time.Now()
|
v.Submitted = time.Now()
|
||||||
|
|||||||
Reference in New Issue
Block a user