mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
docs: 更新help以及下载资源
This commit is contained in:
parent
ab99174460
commit
cc811178cb
2 changed files with 26 additions and 0 deletions
13
apps/help.js
13
apps/help.js
|
|
@ -115,6 +115,19 @@ const helpData = [
|
|||
needSK: false,
|
||||
commands: ['式舆防卫战', '防卫战', '式舆', '深渊', '防卫'],
|
||||
},
|
||||
{
|
||||
title: '查看上期式舆防卫战',
|
||||
desc: '查看上期式舆防卫战(深渊)信息',
|
||||
needCK: false,
|
||||
needSK: false,
|
||||
commands: [
|
||||
'上期式舆防卫战',
|
||||
'上期防卫战',
|
||||
'上期式舆',
|
||||
'上期深渊',
|
||||
'上期防卫',
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import settings from '../lib/settings.js';
|
|||
import fs from 'fs';
|
||||
import {
|
||||
getRoleImage,
|
||||
getSmallSquareAvatar,
|
||||
getSquareAvatar,
|
||||
getSuitImage,
|
||||
getWeaponImage,
|
||||
|
|
@ -52,6 +53,11 @@ export class Panel extends ZZZPlugin {
|
|||
failed: 0,
|
||||
total: charIDs.length,
|
||||
},
|
||||
charSmallSquare: {
|
||||
success: 0,
|
||||
failed: 0,
|
||||
total: charIDs.length,
|
||||
},
|
||||
charSquare: {
|
||||
success: 0,
|
||||
failed: 0,
|
||||
|
|
@ -79,6 +85,13 @@ export class Panel extends ZZZPlugin {
|
|||
logger.error('getSquareAvatar', id, error);
|
||||
result.charSquare.failed++;
|
||||
}
|
||||
try {
|
||||
await getSmallSquareAvatar(id);
|
||||
result.charSmallSquare.success++;
|
||||
} catch (error) {
|
||||
logger.error('getSmallSquareAvatar', id, error);
|
||||
result.charSmallSquare.failed++;
|
||||
}
|
||||
try {
|
||||
await getRoleImage(id);
|
||||
result.char.success++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue