From 88bd2e88a5a0794f1fb0a5bfdb2aa299c082443c Mon Sep 17 00:00:00 2001 From: Last2014 Date: Wed, 2 Jul 2025 16:49:06 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B7=8A=E6=80=A5=E5=9C=B0=E9=9C=87=E9=80=9F?= =?UTF-8?q?=E5=A0=B1=E3=81=AB=E3=82=82=E5=8F=8D=E6=98=A0=E2=86=92v3.5.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- scripts/earthquakeNotice.ts | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4e2ea2f..0b2a3b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "noticeuwuzu", - "version": "v3.5.2@uwuzu1.5.4", + "version": "v3.5.3@uwuzu1.5.4", "description": "uwuzu Notice Bot", "main": "dist/main.js", "scripts": { diff --git a/scripts/earthquakeNotice.ts b/scripts/earthquakeNotice.ts index 0949f9a..5a71a9a 100644 --- a/scripts/earthquakeNotice.ts +++ b/scripts/earthquakeNotice.ts @@ -178,12 +178,11 @@ async function event(earthquakeInfo: any): Promise { if (earthquakeInfo.areas !== null) { const areaNames: Array = Array.from( new Set( - earthquakeInfo.areas.map((i: any) => { - earthquakeInfo.areas[i].name; - }), + earthquakeInfo.areas + .map((point: any) => point.name) + .filter(Boolean) ), ); - areas = `対象地域:${areaNames.join("・")}`; }