緊急地震速報にも反映→v3.5.3

This commit is contained in:
Last2014 2025-07-02 16:49:06 +09:00
parent 7c7dfdcf3c
commit 88bd2e88a5
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "noticeuwuzu", "name": "noticeuwuzu",
"version": "v3.5.2@uwuzu1.5.4", "version": "v3.5.3@uwuzu1.5.4",
"description": "uwuzu Notice Bot", "description": "uwuzu Notice Bot",
"main": "dist/main.js", "main": "dist/main.js",
"scripts": { "scripts": {

View File

@ -178,12 +178,11 @@ async function event(earthquakeInfo: any): Promise<void> {
if (earthquakeInfo.areas !== null) { if (earthquakeInfo.areas !== null) {
const areaNames: Array<string> = Array.from( const areaNames: Array<string> = Array.from(
new Set( new Set(
earthquakeInfo.areas.map((i: any) => { earthquakeInfo.areas
earthquakeInfo.areas[i].name; .map((point: any) => point.name)
}), .filter(Boolean)
), ),
); );
areas = `対象地域:${areaNames.join("・")}`; areas = `対象地域:${areaNames.join("・")}`;
} }