import { RuleManager } from './RuleManager'; import { apiFetch } from '../../_lib/api'; interface RuleData { id: string; matchType: 'HASHTAG' | 'PREFIX' | 'REACTION_EMOJI'; matchValue: string; action: 'FLAG' | 'AUTO_APPROVE' | 'SKIP' | 'REJECT'; priority: number; isActive: boolean; createdAt: string; updatedAt: string; } export default async function RulesSettingsPage() { let rules: RuleData[] = []; try { const res = await apiFetch('/admin/rules'); if (res.ok) { rules = (await res.json()) as RuleData[]; } } catch { rules = []; } return (

Rules Engine

Configure which hashtags, prefixes, and reaction emojis trigger message processing and what action TOWER should take. Rules are matched in priority order.

); }