New reaction for admins
This commit is contained in:
@ -110,6 +110,10 @@ func readReaction(s *discordgo.Session, m *discordgo.MessageReactionAdd) {
|
|||||||
requestAge(s, user)
|
requestAge(s, user)
|
||||||
log.LogInfo("%+v has requested ASL for user %+v.", admin.User.Username, user.Username)
|
log.LogInfo("%+v has requested ASL for user %+v.", admin.User.Username, user.Username)
|
||||||
return
|
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 == "⛔" {
|
} 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)
|
s.GuildBanCreateWithReason(config.GuildID, user.ID, fmt.Sprintf("Underage female or too many failed verifications. %+v", admin.User.Username), 5)
|
||||||
verification.Status = "Banned"
|
verification.Status = "Banned"
|
||||||
|
|||||||
@ -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))
|
msg, _ := s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("%+v\n%+v", v.Username, v.Photo))
|
||||||
config.Verifications[msg.ID] = v
|
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, "👍")
|
||||||
s.MessageReactionAdd(config.AdminChannel, msg.ID, "👶")
|
s.MessageReactionAdd(config.AdminChannel, msg.ID, "👶")
|
||||||
s.MessageReactionAdd(config.AdminChannel, msg.ID, "⛔")
|
s.MessageReactionAdd(config.AdminChannel, msg.ID, "⛔")
|
||||||
|
|||||||
10
main.go
10
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.")
|
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)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user