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

Filters #216

Closed
circuitsacul opened this issue Jan 30, 2023 · 0 comments
Closed

Filters #216

circuitsacul opened this issue Jan 30, 2023 · 0 comments
Labels
new feature New feature or request requires migration This issue or PR requires changes to the database structure to resolve

Comments

@circuitsacul
Copy link
Owner

circuitsacul commented Jan 30, 2023

Overview

New table filters, and a table filter_checks. A check can be:

  • Default Context:
    • user has all roles
    • user has any role
    • user is bot
  • Message Context:
    • in channel
    • message longer than
    • more_attachments_than
    • message matches (regex supported with premium)
  • Vote Context
    • voter has all roles
    • voter has any role

A single check also has another two fields:

  • on_pass: Action
  • on_fail: Action

Where Action can be one of "Filter Passes", "Filter Fails", or "Keep Going".

Filters can be applied to starboards (and overrides by overriding) as well as autostar channels.

At some point in the future, overrides may use conditions to determine whether they apply, rather than a list of channels.

@circuitsacul circuitsacul added new feature New feature or request requires migration This issue or PR requires changes to the database structure to resolve labels Jan 30, 2023
@circuitsacul circuitsacul modified the milestones: 4.6.0, 4.7.0 Feb 1, 2023
@circuitsacul circuitsacul closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2023
@circuitsacul circuitsacul reopened this Feb 1, 2023
@circuitsacul circuitsacul closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2023
@circuitsacul circuitsacul removed this from the 4.6.0 milestone Feb 1, 2023
@circuitsacul circuitsacul reopened this Feb 1, 2023
@circuitsacul circuitsacul added this to the 4.6.0 milestone Feb 2, 2023
@circuitsacul circuitsacul changed the title Conditions Filters Feb 2, 2023
@circuitsacul circuitsacul mentioned this issue Feb 3, 2023
22 tasks
@circuitsacul circuitsacul removed this from the 4.6.0 milestone Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request requires migration This issue or PR requires changes to the database structure to resolve
Projects
None yet
Development

No branches or pull requests

1 participant