From 8e3e88c6e8383bf2d93d65fa68f21dd734384417 Mon Sep 17 00:00:00 2001 From: huankong233 Date: Mon, 6 Apr 2026 16:11:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[*]=20=E4=BF=AE=E5=A4=8D=E5=B8=AE=E5=8A=A9?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=BA=8F=E5=8F=B7=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/atri-plugin-help/CHANGELOG.md | 4 ++++ plugins/atri-plugin-help/package.json | 2 +- plugins/atri-plugin-help/src/index.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/atri-plugin-help/CHANGELOG.md b/plugins/atri-plugin-help/CHANGELOG.md index f36f9c4..39e7ee9 100644 --- a/plugins/atri-plugin-help/CHANGELOG.md +++ b/plugins/atri-plugin-help/CHANGELOG.md @@ -2,6 +2,10 @@ ## 2026 +### 04-06 v2.4.4 + +- [*] 修复帮助列表序号错误 + ### 04-06 v2.4.3 - [*] 更新版本号 diff --git a/plugins/atri-plugin-help/package.json b/plugins/atri-plugin-help/package.json index 8076119..08563bc 100644 --- a/plugins/atri-plugin-help/package.json +++ b/plugins/atri-plugin-help/package.json @@ -1,7 +1,7 @@ { "name": "@atri-bot/plugin-help", "type": "module", - "version": "2.4.3", + "version": "2.4.4", "description": "help plugin for atri framework", "author": "huan_kong", "license": "MIT", diff --git a/plugins/atri-plugin-help/src/index.ts b/plugins/atri-plugin-help/src/index.ts index b59e4ad..76242d3 100644 --- a/plugins/atri-plugin-help/src/index.ts +++ b/plugins/atri-plugin-help/src/index.ts @@ -51,7 +51,7 @@ export async function handleCommandList(options: HandleCommandListOptions) { const paginatedCommandList = filteredCommandList .slice((page - 1) * size, page * size) - .map((cmdEvent, index) => `${index + 1}. ${decodeUnicode(cmdEvent.trigger.toString())}`) + .map((cmdEvent, index) => `${page * (size - 1) + index + 1}. ${decodeUnicode(cmdEvent.trigger.toString())}`) return [ Structs.text(`${name} v${version} - 命令列表 (第 ${page} 页, 共 ${Math.ceil(filteredCommandList.length / size)} 页)\n`), From e57cdc991a2658ae24dd83e89794d883ab04b58e Mon Sep 17 00:00:00 2001 From: huankong233 Date: Fri, 29 May 2026 09:48:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[*]=20=E4=BF=AE=E5=A4=8Dhelp=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E5=BA=8F=E5=8F=B7=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/example/src/index.ts | 2 +- plugins/atri-plugin-help/CHANGELOG.md | 5 +++++ plugins/atri-plugin-help/package.json | 2 +- plugins/atri-plugin-help/src/index.ts | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/example/src/index.ts b/packages/example/src/index.ts index 7a78588..3e664fa 100644 --- a/packages/example/src/index.ts +++ b/packages/example/src/index.ts @@ -10,7 +10,7 @@ const atri = new ATRI({ configDir: './config', logDir: './logs', dataDir: './data', - modulesDir: './node_modules', + modulesDir: '../../node_modules', saveLogs: !debug, botConfig: { prefix: JSON.parse(process.env.PREFIX ?? '["/"]'), diff --git a/plugins/atri-plugin-help/CHANGELOG.md b/plugins/atri-plugin-help/CHANGELOG.md index 39e7ee9..f5e516a 100644 --- a/plugins/atri-plugin-help/CHANGELOG.md +++ b/plugins/atri-plugin-help/CHANGELOG.md @@ -2,6 +2,11 @@ ## 2026 +### 05-29 v2.4.6 + +- [-] 去除错误调用 next() + +### 05-29 v2.4.5 ### 04-06 v2.4.4 - [*] 修复帮助列表序号错误 diff --git a/plugins/atri-plugin-help/package.json b/plugins/atri-plugin-help/package.json index 08563bc..8f55411 100644 --- a/plugins/atri-plugin-help/package.json +++ b/plugins/atri-plugin-help/package.json @@ -1,7 +1,7 @@ { "name": "@atri-bot/plugin-help", "type": "module", - "version": "2.4.4", + "version": "2.4.6", "description": "help plugin for atri framework", "author": "huan_kong", "license": "MIT", diff --git a/plugins/atri-plugin-help/src/index.ts b/plugins/atri-plugin-help/src/index.ts index 76242d3..ecb7a46 100644 --- a/plugins/atri-plugin-help/src/index.ts +++ b/plugins/atri-plugin-help/src/index.ts @@ -51,7 +51,7 @@ export async function handleCommandList(options: HandleCommandListOptions) { const paginatedCommandList = filteredCommandList .slice((page - 1) * size, page * size) - .map((cmdEvent, index) => `${page * (size - 1) + index + 1}. ${decodeUnicode(cmdEvent.trigger.toString())}`) + .map((cmdEvent, index) => `${(page - 1) * size + index + 1}. ${decodeUnicode(cmdEvent.trigger.toString())}`) return [ Structs.text(`${name} v${version} - 命令列表 (第 ${page} 页, 共 ${Math.ceil(filteredCommandList.length / size)} 页)\n`),