A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules
1import type { Checks } from "../src/types.js";
2
3/**
4 * Post content moderation checks
5 *
6 * Monitors post text and embedded URLs for pattern matches.
7 * Configure your checks below.
8 */
9export const POST_CHECKS: Checks[] = [
10 // Basic example - label posts matching a pattern:
11 // {
12 // label: "spam",
13 // comment: "Spam content detected in post",
14 // reportAcct: false,
15 // commentAcct: false,
16 // toLabel: true,
17 // check: new RegExp("buy.*followers", "i"),
18 // },
19
20 // Advanced example - all optional fields:
21 // {
22 // label: "scam-link",
23 // comment: "Suspicious link detected",
24 // language: ["eng", "spa"], // Only check posts in these languages
25 // reportAcct: true, // Create account report
26 // reportPost: true, // Create post report
27 // commentAcct: false, // Add comment to account record
28 // toLabel: true, // Apply the label
29 // trackOnly: false, // If true, track but don't take action
30 // unlabel: false, // If true, remove label when no longer matching
31 // duration: 24, // Label expires after 24 hours
32 // check: new RegExp("crypto.*giveaway", "i"),
33 // whitelist: new RegExp("legitimate-site\\.com", "i"), // Skip if this matches
34 // ignoredDIDs: ["did:plc:trusted123"], // Skip these accounts
35 // starterPacks: ["at://did:plc:xyz/app.bsky.graph.starterpack/abc"], // Only check members
36 // knownVectors: ["telegram-scam", "discord-spam"], // Tracking tags
37 // },
38];