From bd7ee0a1bafc0ea7a7501ba37541349d4a81b73e Mon Sep 17 00:00:00 2001 From: hemengyang Date: Tue, 4 Jan 2022 20:23:21 +0800 Subject: [PATCH 01/10] :construction_worker: update publish bot config --- .github/workflows/publish-bot.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/publish-bot.yml index 47d21ab9..8e718bcc 100644 --- a/.github/workflows/publish-bot.yml +++ b/.github/workflows/publish-bot.yml @@ -21,7 +21,10 @@ jobs: uses: nonebot/nonebot2-publish-bot@main with: token: ${{ secrets.GH_TOKEN }} - base: master - plugin_path: website/static/plugins.json - bot_path: website/static/bots.json - adapter_path: website/static/adapters.json + config: > + { + "base": "master", + "plugin_path": "website/static/plugins.json", + "bot_path": "website/static/bots.json", + "adapter_path": "website/static/adapters.json" + } From 3bede1581fe68519585bb8641e8b3a7cef1d9c1a Mon Sep 17 00:00:00 2001 From: StarHeart Date: Tue, 4 Jan 2022 22:21:53 +0800 Subject: [PATCH 02/10] :wrench: update Algolia search config --- website/docusaurus.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 36674f17..bbd64deb 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -145,7 +145,8 @@ const config = { darkTheme: darkCodeTheme, }, algolia: { - apiKey: "ef449608d0ad6e81b9efd05db6367040", + appId: 'X0X5UACHZQ', + apiKey: "ac03e1ac2bd0812e2ea38c0cc1ea38c5", indexName: "nonebot", contextualSearch: true, // searchParameters: { From dd5112ff993f1fabec97c420b015ff473ac750f6 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Tue, 4 Jan 2022 23:23:00 +0800 Subject: [PATCH 03/10] :art: fix quote --- website/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index bbd64deb..81bd19f7 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -145,7 +145,7 @@ const config = { darkTheme: darkCodeTheme, }, algolia: { - appId: 'X0X5UACHZQ', + appId: "X0X5UACHZQ", apiKey: "ac03e1ac2bd0812e2ea38c0cc1ea38c5", indexName: "nonebot", contextualSearch: true, From 896f1d6596bdeabb58046ead31fd11153824f14b Mon Sep 17 00:00:00 2001 From: ninthseason Date: Tue, 4 Jan 2022 15:41:12 +0000 Subject: [PATCH 04/10] =?UTF-8?q?:beers:=20publish=20plugin=20=E7=BE=A4?= =?UTF-8?q?=E8=81=8A=E5=A4=8D=E8=AF=BB=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/static/plugins.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/website/static/plugins.json b/website/static/plugins.json index c01c8667..cd5a7357 100644 --- a/website/static/plugins.json +++ b/website/static/plugins.json @@ -792,5 +792,15 @@ "homepage": "https://github.com/MeetWq/nonebot-plugin-memes", "tags": [], "is_official": false + }, + { + "module_name": "nonebot_plugin_repeater", + "project_link": "nonebot-plugin-repeater", + "name": "群聊复读机", + "desc": "谁不喜欢+1呢?", + "author": "ninthseason", + "homepage": "https://github.com/ninthseason/nonebot-plugin-repeater", + "tags": [], + "is_official": false } -] +] \ No newline at end of file From ef386af2bc115f81b00a42030f1fc4b12635c4ca Mon Sep 17 00:00:00 2001 From: Mix <32300164+mnixry@users.noreply.github.com> Date: Wed, 5 Jan 2022 00:03:56 +0800 Subject: [PATCH 05/10] :memo: optimize readme expression and styling --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c101ed5e..83fb2806 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,8 @@ NoneBot2 不是 NoneBot1 的替代品。事实上,它们都在被积极的维 懒得看文档?下面是快速安装指南: -1. (可选)使用你喜欢的 Python 环境管理工具创建新的虚拟环境。 +1. (**强烈建议**)使用你喜欢的 Python 环境管理工具创建新的虚拟环境。 + 2. 使用 `pip` (或其他) 安装 NoneBot 脚手架。 ```bash @@ -153,7 +154,14 @@ NoneBot2 不是 NoneBot1 的替代品。事实上,它们都在被积极的维 ## 许可证 -`NoneBot` 采用 `MIT` 协议开源,协议文件参考 [LICENSE](./LICENSE)。 +`NoneBot` 采用 `MIT` 许可证进行开源 + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ## 贡献 @@ -161,7 +169,11 @@ NoneBot2 不是 NoneBot1 的替代品。事实上,它们都在被积极的维 如果你要提交 Pull Request,请确保你的代码风格和项目已有的代码保持一致,遵循 [PEP 8](https://www.python.org/dev/peps/pep-0008/) 与 [PEP 484](https://www.python.org/dev/peps/pep-0484/),变量命名清晰,有适当的注释与测试代码,**并且请以 `dev` 分支作为 Pull Request 目标分支**。 -感谢以下开发者对 NoneBot2 的贡献: + + +### 鸣谢 + +感谢以下开发者对 NoneBot2 作出的贡献: From 402de4bb8a394553821704f5edb1c788f3e7ebd0 Mon Sep 17 00:00:00 2001 From: CherryGS Date: Wed, 5 Jan 2022 05:47:12 +0000 Subject: [PATCH 06/10] =?UTF-8?q?:beers:=20publish=20plugin=20=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=AE=A1=E7=90=86=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/static/plugins.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/website/static/plugins.json b/website/static/plugins.json index cd5a7357..5039607f 100644 --- a/website/static/plugins.json +++ b/website/static/plugins.json @@ -802,5 +802,15 @@ "homepage": "https://github.com/ninthseason/nonebot-plugin-repeater", "tags": [], "is_official": false + }, + { + "module_name": "nonebot_plugin_PCtrl", + "project_link": "nonebot-plugin-pctrl", + "name": "插件管理器", + "desc": "基于HOOK的插件管理器,提供常用功能", + "author": "CherryGS", + "homepage": "https://github.com/CherryGS/nonebot_plugin_PCtrl", + "tags": [], + "is_official": false } ] \ No newline at end of file From 2b5f3268c83b554e10eb71fde2886b2c84b99b98 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Wed, 5 Jan 2022 16:30:44 +0800 Subject: [PATCH 07/10] :memo: disable service worker globally --- website/docusaurus.config.js | 2 ++ website/static/unregister-sw.js | 1 + 2 files changed, 3 insertions(+) create mode 100644 website/static/unregister-sw.js diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 81bd19f7..f6d3c674 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -22,6 +22,8 @@ const config = { "zh-Hans": { label: "简体中文" }, }, }, + + scripts: ["https://v2.nonebot.dev/unregister-sw.js"], presets: [ [ diff --git a/website/static/unregister-sw.js b/website/static/unregister-sw.js new file mode 100644 index 00000000..50cdbb9c --- /dev/null +++ b/website/static/unregister-sw.js @@ -0,0 +1 @@ +navigator.serviceWorker.getRegistrations().then(function(e){for(var r,i=e,t=Array.isArray(i),a=0,i=t?i:i[Symbol.iterator]();;){if(t){if(a>=i.length)break;r=i[a++]}else{if((a=i.next()).done)break;r=a.value}r.unregister()}}); \ No newline at end of file From 93b76894bb17661df3d424cf61293a6bac15b8a0 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Wed, 5 Jan 2022 16:41:37 +0800 Subject: [PATCH 08/10] :memo: import js based on domain --- website/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index f6d3c674..9d3c0ad4 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -23,7 +23,7 @@ const config = { }, }, - scripts: ["https://v2.nonebot.dev/unregister-sw.js"], + scripts: ["/unregister-sw.js"], presets: [ [ From 0cbcc043968743d01fc80f6cfb4cd14906bab970 Mon Sep 17 00:00:00 2001 From: ninthseason Date: Thu, 6 Jan 2022 15:16:19 +0000 Subject: [PATCH 09/10] =?UTF-8?q?:beers:=20publish=20plugin=20=E7=BE=A4?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9B=B4=E9=93=BE=E6=8F=90=E5=8F=96=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/static/plugins.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/static/plugins.json b/website/static/plugins.json index 5039607f..0248b955 100644 --- a/website/static/plugins.json +++ b/website/static/plugins.json @@ -812,5 +812,20 @@ "homepage": "https://github.com/CherryGS/nonebot_plugin_PCtrl", "tags": [], "is_official": false + }, + { + "module_name": "nonebot_plugin_directlinker", + "project_link": "nonebot-plugin-directlinker", + "name": "群文件直链提取器", + "desc": "提取群文件的下载直链。", + "author": "ninthseason", + "homepage": "https://github.com/ninthseason/nonebot-plugin-directlinker", + "tags": [ + { + "label": "a:cqhttp", + "color": "#ea5252" + } + ], + "is_official": false } ] \ No newline at end of file From f01694dfe7e83092cc7abb814a066ab5e46e2ecb Mon Sep 17 00:00:00 2001 From: ninthseason Date: Sat, 8 Jan 2022 01:59:18 +0000 Subject: [PATCH 10/10] =?UTF-8?q?:beers:=20publish=20plugin=20=E8=BD=AC?= =?UTF-8?q?=E5=8F=91=E5=A7=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/static/plugins.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/website/static/plugins.json b/website/static/plugins.json index 0248b955..2e454dc9 100644 --- a/website/static/plugins.json +++ b/website/static/plugins.json @@ -827,5 +827,15 @@ } ], "is_official": false + }, + { + "module_name": "nonebot_plugin_forwarder", + "project_link": "nonebot-plugin-forwarder", + "name": "转发姬", + "desc": "群聊消息实时转发", + "author": "ninthseason", + "homepage": "https://github.com/ninthseason/nonebot_plugin_forwarder", + "tags": [], + "is_official": false } ] \ No newline at end of file