Uh oh!
There was an error while loading. Please reload this page.
Seniors and Staff Exempt from Anti-Raid - #1
Conversation
Getting senior and staff role from config
Senior now bypasses anti-raid
Senior's now bypass anti-raid features. Pls dont abuse
Staff and seniors are now exempt from the anti raid, added some notes as well on what needs to be done with the continuation of it. Need to add a message to send to #mod-log, yet it has not been implemented
🎨 Staff and Seniors are exempt
austinmccalley
left a comment
There was a problem hiding this comment.
Logic is weird for checking if not senior or not staff. If we check both at the same time and a staff isn't a senior they get bonked. Due to false || true with the statement !staff || !senior. I am probably being dumb and can't figure it out.
redxtech
commented
Apr 17, 2020
Try using
Not valid code but got the right idea. |
lostdesign
left a comment
There was a problem hiding this comment.
Looks good to me! See comment.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thanks to wafflen for the suggestions on the logic and var names
Forgot to switch branches
Reset time on new spam message, as well config defines the max amount of mentioned roles and members
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: wellá <info@lost.design>
Co-Authored-By: wellá <info@lost.design>
Uh oh!
There was an error while loading. Please reload this page.
Removed old comment
| if (isStaff || isSenior) { | ||
| return | ||
| } else { |
| mentionedUsers > maxMentionedMemebers || | ||
| mentionedUsers + mentionedRoles > maxMentionedEverything | ||
| ) { | ||
| lastKnownTimestamp |
Staff and seniors are now exempt from anti-raid