From cc811178cbada3d4bfb4914b53955dd9fc87634b Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Thu, 1 Aug 2024 10:34:25 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0help=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E4=B8=8B=E8=BD=BD=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/help.js | 13 +++++++++++++ apps/manage.js | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/apps/help.js b/apps/help.js index ee98392..f672e7e 100644 --- a/apps/help.js +++ b/apps/help.js @@ -115,6 +115,19 @@ const helpData = [ needSK: false, commands: ['式舆防卫战', '防卫战', '式舆', '深渊', '防卫'], }, + { + title: '查看上期式舆防卫战', + desc: '查看上期式舆防卫战(深渊)信息', + needCK: false, + needSK: false, + commands: [ + '上期式舆防卫战', + '上期防卫战', + '上期式舆', + '上期深渊', + '上期防卫', + ], + }, ], }, { diff --git a/apps/manage.js b/apps/manage.js index 067c872..8728768 100644 --- a/apps/manage.js +++ b/apps/manage.js @@ -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++;