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 f36f9c4..f5e516a 100644 --- a/plugins/atri-plugin-help/CHANGELOG.md +++ b/plugins/atri-plugin-help/CHANGELOG.md @@ -2,6 +2,15 @@ ## 2026 +### 05-29 v2.4.6 + +- [-] 去除错误调用 next() + +### 05-29 v2.4.5 +### 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..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.3", + "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 b59e4ad..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) => `${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`),