From cc1ed81adc29f6049b42112ad18da44bebaed7fe Mon Sep 17 00:00:00 2001 From: LamGC Date: Sat, 7 Nov 2020 15:55:42 +0800 Subject: [PATCH] =?UTF-8?q?[Add]=20Core=20=E6=B7=BB=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E4=BB=BD=20framework.json=20=E5=AE=8C=E6=95=B4=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E6=96=87=E4=BB=B6;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Add] simple-framework.json 添加一份 framework.json 完整示例文件; --- .../src/test/resources/simple-framework.json | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ContentGrabbingJi-core/src/test/resources/simple-framework.json diff --git a/ContentGrabbingJi-core/src/test/resources/simple-framework.json b/ContentGrabbingJi-core/src/test/resources/simple-framework.json new file mode 100644 index 0000000..dbd4537 --- /dev/null +++ b/ContentGrabbingJi-core/src/test/resources/simple-framework.json @@ -0,0 +1,33 @@ +// 该文件为 framework.json 格式完整示例, 非测试用文件. +{ + "id": "cgj-mirai", + "description": "test", + "version": "3.0.0-alpha", + "requiresVersion": "=>3.0.0", + "provider": "Github@LamGC, Github@mamoe", + "license": "AGPL-3.0", + "frameworkClass": "com.example.FrameworkMain", + "dependencies": [ + "RequireDepend@1.0.0", + "OptionalDepend?@1.0.0" + ], + + "platform": { + "name": "Tencent QQ", + "identify": "qq" + }, + "authors": [ + { + "name": "LamGC", + "url": "https://github.com/LamGC", + "email": "lam827@lamgc.net" + } + ], + "botCode": { + "patterns": [ + "(?:\\[mirai:([^:]+)\\])", + "(?:\\[mirai:([^\\]]*)?:(.*?)?\\])", + "(?:\\[mirai:([^\\]]*)?(:(.*?))*?\\])" + ] + } +} \ No newline at end of file