A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules
at main 989 B view raw
1import type { Checks } from "../src/types.js"; 2 3/** 4 * Handle-based moderation checks 5 * 6 * Monitors user handles (usernames) for pattern matches. 7 * Configure your checks below. 8 */ 9export const HANDLE_CHECKS: Checks[] = [ 10 // Basic example - flag potential impersonation: 11 // { 12 // label: "impersonation", 13 // comment: "Potential impersonation detected in handle", 14 // reportAcct: true, 15 // commentAcct: false, 16 // toLabel: false, 17 // check: new RegExp("official.*support", "i"), 18 // }, 19 20 // Advanced example with optional fields: 21 // { 22 // label: "suspicious-handle", 23 // comment: "Handle matches known spam pattern", 24 // reportAcct: true, 25 // commentAcct: false, 26 // toLabel: true, 27 // unlabel: true, // Remove label if handle changes 28 // check: new RegExp("crypto.*airdrop", "i"), 29 // whitelist: new RegExp("cryptography", "i"), // Don't match legitimate use 30 // ignoredDIDs: ["did:plc:verified123"], 31 // }, 32];