Skip to content

Fix interactive regex_block flow to prompt for pattern#67

Merged
Cordtus merged 3 commits intomainfrom
fix/regex-block-pattern-prompt
Mar 18, 2026
Merged

Fix interactive regex_block flow to prompt for pattern#67
Cordtus merged 3 commits intomainfrom
fix/regex-block-pattern-prompt

Conversation

@Cordtus
Copy link
Copy Markdown
Collaborator

@Cordtus Cordtus commented Mar 18, 2026

Summary

  • The interactive /addrestriction flow for regex_block never prompted for the actual pattern to filter, saving restrictions with Action: N/A
  • Adds step 4 to the session flow that prompts for the regex pattern before applying the restriction
  • Extracts shared applyRestriction() helper for the final save/log/confirm logic

Test plan

  • Run /addrestriction interactively, select Regex Block, verify it prompts for the pattern after auto-jail selection
  • Verify the pattern is saved correctly via /listrestrictions
  • Verify non-regex restriction types (no_stickers, no_media, etc.) still apply immediately without extra prompt
  • bun run test passes (36/36)

Cordtus added 3 commits March 10, 2026 23:03
Rename the spam profile pattern management feature from "SpamPattern"
to "SpamReact" to distinguish it from existing content filtering
patterns. Nest help content under the Owner section instead of a
standalone top-level button.

Commands: /addspamreact, /removespamreact, /listspamreacts,
/testspamreact, /spamreacthelp
The interactive /addrestriction flow for regex_block never asked for the
actual pattern to filter. After selecting auto-jail settings it saved the
restriction with no action, resulting in an empty regex_block entry.

Add step 4 to the session flow that prompts for the pattern before applying.
Extract shared applyRestriction helper for the final save/log/confirm.
@Cordtus Cordtus merged commit 235b938 into main Mar 18, 2026
4 checks passed
@Cordtus Cordtus deleted the fix/regex-block-pattern-prompt branch March 18, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant