Skip to content

Commit

Permalink
refactor: filters and filter factory (#2914)
Browse files Browse the repository at this point in the history
* feat: allow passing predicate for eventMetaKey

* feat: expand selection of comparison types

* refactor: event filters

* refactor: OBS filters

* refactor: streamloots filters

---------

Co-authored-by: Erik Bigler <[email protected]>
  • Loading branch information
dennisrijsdijk and ebiggz authored Dec 9, 2024
1 parent 2a27b74 commit 0741031
Show file tree
Hide file tree
Showing 79 changed files with 942 additions and 1,718 deletions.
45 changes: 0 additions & 45 deletions src/backend/events/filters/builtin-filter-loader.js

This file was deleted.

8 changes: 8 additions & 0 deletions src/backend/events/filters/builtin-filter-loader.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import filterManager from "./filter-manager";
import filters from "./builtin";

export function loadFilters() {
for (const definition of filters) {
filterManager.registerFilter(definition);
}
}
51 changes: 0 additions & 51 deletions src/backend/events/filters/builtin/bits-badge-tier.js

This file was deleted.

55 changes: 0 additions & 55 deletions src/backend/events/filters/builtin/chat-mode-duration.js

This file was deleted.

54 changes: 0 additions & 54 deletions src/backend/events/filters/builtin/chat-mode-setting.js

This file was deleted.

51 changes: 0 additions & 51 deletions src/backend/events/filters/builtin/cheer-bits-amount.js

This file was deleted.

43 changes: 0 additions & 43 deletions src/backend/events/filters/builtin/currency.js

This file was deleted.

72 changes: 0 additions & 72 deletions src/backend/events/filters/builtin/custom-variable-name.ts

This file was deleted.

Loading

0 comments on commit 0741031

Please sign in to comment.