mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 05:37:46 +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,
|
needSK: false,
|
||||||
commands: ['式舆防卫战', '防卫战', '式舆', '深渊', '防卫'],
|
commands: ['式舆防卫战', '防卫战', '式舆', '深渊', '防卫'],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '查看上期式舆防卫战',
|
||||||
|
desc: '查看上期式舆防卫战(深渊)信息',
|
||||||
|
needCK: false,
|
||||||
|
needSK: false,
|
||||||
|
commands: [
|
||||||
|
'上期式舆防卫战',
|
||||||
|
'上期防卫战',
|
||||||
|
'上期式舆',
|
||||||
|
'上期深渊',
|
||||||
|
'上期防卫',
|
||||||
|
],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ import settings from '../lib/settings.js';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import {
|
import {
|
||||||
getRoleImage,
|
getRoleImage,
|
||||||
|
getSmallSquareAvatar,
|
||||||
getSquareAvatar,
|
getSquareAvatar,
|
||||||
getSuitImage,
|
getSuitImage,
|
||||||
getWeaponImage,
|
getWeaponImage,
|
||||||
|
|
@ -52,6 +53,11 @@ export class Panel extends ZZZPlugin {
|
||||||
failed: 0,
|
failed: 0,
|
||||||
total: charIDs.length,
|
total: charIDs.length,
|
||||||
},
|
},
|
||||||
|
charSmallSquare: {
|
||||||
|
success: 0,
|
||||||
|
failed: 0,
|
||||||
|
total: charIDs.length,
|
||||||
|
},
|
||||||
charSquare: {
|
charSquare: {
|
||||||
success: 0,
|
success: 0,
|
||||||
failed: 0,
|
failed: 0,
|
||||||
|
|
@ -79,6 +85,13 @@ export class Panel extends ZZZPlugin {
|
||||||
logger.error('getSquareAvatar', id, error);
|
logger.error('getSquareAvatar', id, error);
|
||||||
result.charSquare.failed++;
|
result.charSquare.failed++;
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
await getSmallSquareAvatar(id);
|
||||||
|
result.charSmallSquare.success++;
|
||||||
|
} catch (error) {
|
||||||
|
logger.error('getSmallSquareAvatar', id, error);
|
||||||
|
result.charSmallSquare.failed++;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
await getRoleImage(id);
|
await getRoleImage(id);
|
||||||
result.char.success++;
|
result.char.success++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue