docs: 更新help以及下载资源

This commit is contained in:
bietiaop 2024-08-01 10:34:25 +08:00
parent ab99174460
commit cc811178cb
2 changed files with 26 additions and 0 deletions

View file

@ -115,6 +115,19 @@ const helpData = [
needSK: false,
commands: ['式舆防卫战', '防卫战', '式舆', '深渊', '防卫'],
},
{
title: '查看上期式舆防卫战',
desc: '查看上期式舆防卫战(深渊)信息',
needCK: false,
needSK: false,
commands: [
'上期式舆防卫战',
'上期防卫战',
'上期式舆',
'上期深渊',
'上期防卫',
],
},
],
},
{

View file

@ -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++;