diff --git a/discordEvents.go b/discordEvents.go index 22e79d9..bd325a4 100644 --- a/discordEvents.go +++ b/discordEvents.go @@ -110,6 +110,10 @@ func readReaction(s *discordgo.Session, m *discordgo.MessageReactionAdd) { requestAge(s, user) log.LogInfo("%+v has requested ASL for user %+v.", admin.User.Username, user.Username) return + } else if m.Emoji.Name == "🔄" { + requestReupload(s, user) + log.LogInfo("%+v has requested reupload for user %+v.", admin.User.Username, user.Username) + return } else if m.Emoji.Name == "⛔" { s.GuildBanCreateWithReason(config.GuildID, user.ID, fmt.Sprintf("Underage female or too many failed verifications. %+v", admin.User.Username), 5) verification.Status = "Banned" diff --git a/discordMessage.go b/discordMessage.go index baa4903..3d05cee 100644 --- a/discordMessage.go +++ b/discordMessage.go @@ -155,6 +155,7 @@ func handlePM(s *discordgo.Session, m *discordgo.MessageCreate) { msg, _ := s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("%+v\n%+v", v.Username, v.Photo)) config.Verifications[msg.ID] = v s.MessageReactionAdd(config.AdminChannel, msg.ID, "👎") + s.MessageReactionAdd(config.AdminChannel, msg.ID, "🔄") s.MessageReactionAdd(config.AdminChannel, msg.ID, "👍") s.MessageReactionAdd(config.AdminChannel, msg.ID, "👶") s.MessageReactionAdd(config.AdminChannel, msg.ID, "⛔") diff --git a/main.go b/main.go index 59ff46c..e3d0788 100644 --- a/main.go +++ b/main.go @@ -209,3 +209,13 @@ func requestAge(s *discordgo.Session, u discordgo.User) { s.ChannelMessageSend(st.ID, "What is your ASL? (Age/Sex/Language) Please note, this is NOT requesting your gender, but your biological sex. Gender is a social construct, sex is biology and in the context of pornographic images more important.") } + +func requestReupload(s *discordgo.Session, u discordgo.User) { + defer log.PanicSafe() + st, err := s.UserChannelCreate(u.ID) + if err != nil { + log.LogErrorType(err) + } + s.ChannelMessageSend(st.ID, "Hello! Your verification has been denied because it failed to load. Please try again! The instructions will follow this message:") + rejectVerification(s, u) +}