Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mod] Account for roles in mention spam #5388

Merged
merged 2 commits into from Oct 20, 2022

Conversation

Vexed01
Copy link
Contributor

@Vexed01 Vexed01 commented Oct 13, 2021

Add up both user and role mentions when checking for mention spam, fixes #4471

The discussion on the original issue did not come to a conclusion on which way to implement this. For both end-user and code simplicity (and my personal preference), I have chosen to not add separate trigger values to config and their associated new commands, instead just totalling up role + user mentions. I would be happy to expand on this and implement one of the variations in the original issue if this is what is preferred, such as separate customisation for user mentions/role mentions.

@github-actions github-actions bot added the Category: Cogs - Mod This is related to the Mod cog. label Oct 13, 2021
@Jackenmen Jackenmen added this to the 3.4.x milestone Dec 23, 2021
@Kowlin Kowlin added the Type: Enhancement Something meant to enhance existing Red features. label Oct 19, 2022
Copy link
Member

@Kowlin Kowlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes work like a charm, thank you.

@Kowlin Kowlin merged commit 3be22b6 into Cog-Creators:V3/develop Oct 20, 2022
1 check passed
@red-githubbot red-githubbot bot added the Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. label Oct 20, 2022
Jackenmen pushed a commit to Jackenmen/Red-DiscordBot that referenced this pull request Nov 1, 2022
Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
Drapersniper pushed a commit to Drapersniper/Red-DiscordBot that referenced this pull request Nov 27, 2022
Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
Drapersniper pushed a commit to Drapersniper/Red-DiscordBot that referenced this pull request Dec 2, 2022
Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
@Jackenmen Jackenmen modified the milestones: 3.4.x, 3.4.19 Apr 19, 2023
Red-GitHubBot pushed a commit to Red-GitHubBot/Red-DiscordBot that referenced this pull request Apr 19, 2023
(cherry picked from commit 3be22b6)

Co-authored-by: Vexed <vex@vexcodes.com>
Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
@red-githubbot
Copy link

red-githubbot bot commented Apr 19, 2023

#6056 is a backport of this pull request to Red 3.4.

Jackenmen pushed a commit that referenced this pull request Apr 19, 2023
Co-authored-by: Vexed <vex@vexcodes.com>
Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
@Jackenmen Jackenmen added Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. and removed Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. labels Apr 20, 2023
@Vexed01 Vexed01 deleted the mention-spam-roles branch April 22, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Cogs - Mod This is related to the Mod cog. Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. Type: Enhancement Something meant to enhance existing Red features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Mod] Mention spam accounting for roles
3 participants