This repository was archived by the owner on Oct 15, 2020. It is now read-only.
Seniors and Staff Exempt from Anti-Raid#1
Merged
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
commented
Apr 17, 2020
Member
Author
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.
|
Try using
Not valid code but got the right idea. |
lostdesign
suggested changes
Apr 17, 2020
Member
lostdesign
left a comment
There was a problem hiding this comment.
Looks good to me! See comment.
FunctionDJ
reviewed
Apr 17, 2020
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
lostdesign
suggested changes
Apr 17, 2020
Co-Authored-By: wellá <info@lost.design>
Co-Authored-By: wellá <info@lost.design>
lostdesign
suggested changes
Apr 17, 2020
Removed old comment
lostdesign
approved these changes
Apr 17, 2020
FunctionDJ
reviewed
Apr 17, 2020
|
|
||
| if (isStaff || isSenior) { | ||
| return | ||
| } else { |
| mentionedUsers > maxMentionedMemebers || | ||
| mentionedUsers + mentionedRoles > maxMentionedEverything | ||
| ) { | ||
| lastKnownTimestamp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Staff and seniors are now exempt from anti-raid