Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/example/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? '["/"]'),
Expand Down
9 changes: 9 additions & 0 deletions plugins/atri-plugin-help/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

- [*] 更新版本号
Expand Down
2 changes: 1 addition & 1 deletion plugins/atri-plugin-help/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/atri-plugin-help/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
Expand Down
Loading