diff options
| author | 2025-06-30 23:26:47 +0800 | |
|---|---|---|
| committer | 2025-06-30 23:26:47 +0800 | |
| commit | 9040b293210b76df99a9917791556e5b3d8fe080 (patch) | |
| tree | 53c66bd7e613e3b0e97f04e202ccb51b23cbd56d /test/example_rule.json | |
| parent | f22d7d5d69d77277743aa9176a550d88d1c037ec (diff) | |
| parent | 650403b82678ea3f542ab95c8a227345b9d8ece5 (diff) | |
| download | conventional_role_play-9040b293210b76df99a9917791556e5b3d8fe080.tar.gz conventional_role_play-9040b293210b76df99a9917791556e5b3d8fe080.zip | |
Merge pull request #10 from HydroRoll-Team/chore-delete-test-dir
Diffstat (limited to 'test/example_rule.json')
| -rw-r--r-- | test/example_rule.json | 58 |
1 files changed, 0 insertions, 58 deletions
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"]
- }
- ]
-}
|
