Skip to content

Added ThisIsAgainstRulesCommand (Scam and Job-Ad) (formerly ThisIsScam, only Scam) - #1567

Open
firasrg wants to merge 7 commits into
developfrom
firasrg/feature/new-command-rule-violation-alert
Open

firasrg wants to merge 7 commits into
developfrom
firasrg/feature/new-command-rule-violation-alert

Conversation

@firasrg

@firasrg firasrg commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

What

Replaces the this-is-scam message context command with a more generic
this-is-against-rules command (ThisIsAgainstRulesCommand).

When a user reports a message, mods now get three buttons instead of Yes/No:

Button What happens
Scam Same flow as before: DM, quarantine, then ban + unban to delete the recent messages.
Job-Ad DM, warning recorded (WARN), then ban + unban to delete the recent messages.
Dismiss Nothing happens, the alert is closed.

In both Scam and Job-Ad the ban/unban only serves to delete the message history,
the user can join back right away.

image

@firasrg
firasrg requested a review from a team as a code owner October 9, 2026 23:41
@firasrg
firasrg force-pushed the firasrg/feature/new-command-rule-violation-alert branch from d3aa2f7 to 1edf9cc Compare October 9, 2026 23:53
* </ul>
* The ban and unban only serves to delete the messages, the user is free to join back afterward.
*/
public final class ThisIsScamCommand extends BotCommandAdapter implements MessageContextCommand {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(rename the file, ThisIsAgainstRulesCommand)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will do it at the end

@Zabuzard Zabuzard changed the title Feat: Turn “this is scam” command into a generic option (Scam | Job-Ad | Dismiss) Added ThisIsAgainstRulesCommand (Scam and Job-Ad) (formerly ThisIsScam, only Scam) Oct 10, 2026
@Zabuzard Zabuzard added enhance command Modify or improve an existing command or group of commands of the bot priority: normal priority: major and removed priority: normal labels Oct 10, 2026

@Zabuzard Zabuzard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

time for the last push (see the remaining unresolved commits) 👍

@sonarqubecloud

sonarqubecloud Bot commented Nov 6, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhance command Modify or improve an existing command or group of commands of the bot priority: major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants