From 650403b82678ea3f542ab95c8a227345b9d8ece5 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Mon, 30 Jun 2025 23:20:19 +0800 Subject: chore: Delete useless test dir --- test/example_rule.json | 58 -------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 test/example_rule.json (limited to 'test/example_rule.json') diff --git a/test/example_rule.json b/test/example_rule.json deleted file mode 100644 index 73abe3f..0000000 --- a/test/example_rule.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - // 匹配日志元数据,提取 id、QQ 账号和时间。例如:墨勒托.DW(1571806261) 2025-01-27 19:58:15 - "metadata": { - "type": "metadata", - "patterns": [ - "^(\\S+)\\((\\d+)\\)\\s+(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2})" - ], - "groups": ["user_name", "user_id", "time"] - }, - "content": [ - { - "type": "action", - "match_type": "prefix", - "priority": 1001, // 优先级,数字越小优先级越高,范围为1-5000 - "patterns": ["^#(.+)"], - "groups": ["action_content"] - }, - { - "type": "speech", - "match_type": "enclosed", - "priority": 101, - "patterns": [ - "[“”\"](.+?)[“”\"]" // 匹配各种引号 - ], - "groups": ["speech_content"] - }, - { - "type": "ooc_speech", - "match_type": "enclosed", - "priority": 103, - "patterns": [ - "[\\((](.+?)[\\))]" // 匹配各种括号 - ], - "groups": ["ooc_content"] - }, - { - "type": "suffix_ooc_speech", - "match_type": "suffix", - "priority": 2001, - "patterns": ["(.+)b$"], - "groups": ["suffix_ooc_speech"] - }, - { - "type": "dice_order", - "match_type": "prefix", - "priority": 1, - "patterns": ["^[.。](.+)"], - "groups": ["dice_command"] - }, - { - "type": "thought", - "match_type": "enclosed", - "priority": 102, - "patterns": ["【(.+)】"], - "groups": ["thought_content"] - } - ] -} -- cgit v1.2.3-70-g09d2