From 153b85061a88276e7f5fbe24ff9d9f8e9bc80b39 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Sat, 6 Jun 2026 22:12:25 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E5=9C=B0=E9=9C=87=E6=83=85=E5=A0=B1?= =?UTF-8?q?=E3=81=AB=E6=B4=A5=E6=B3=A2=E3=81=AE=E5=BF=83=E9=85=8D=E3=81=AB?= =?UTF-8?q?=E3=81=A4=E3=81=84=E3=81=A6=E3=81=AE=E6=83=85=E5=A0=B1=E3=81=8C?= =?UTF-8?q?=E8=A8=98=E8=BC=89=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=20/=20v1.0.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/earthquake/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bc440fe..fd82edf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "earthquake-bot-for-mtweet", - "version": "1.0.3", + "version": "1.0.4", "type": "module", "main": "dist/index.js", "scripts": { diff --git a/src/earthquake/index.ts b/src/earthquake/index.ts index b627c00..b9d5e74 100644 --- a/src/earthquake/index.ts +++ b/src/earthquake/index.ts @@ -170,10 +170,10 @@ const processMessage = async (message: any) => { : [`🪨深さ: ${message.earthquake.hypocenter.depth === 0 ? "ごく浅い" : `${message.earthquake.hypocenter.depth}km`}`])); - earthquakeNoticeText.push(...(message.earthquake.domesticTsunami ?? "Unknown" === "Unknown" + earthquakeNoticeText.push(...((message.earthquake.domesticTsunami ?? "Unknown") === "Unknown" ? [] : [domesticTsunamiMessages[(message.earthquake.domesticTsunami)]])); - earthquakeNoticeText.push(...(message.earthquake.foreignTsunami ?? "Unknown" === "Unknown" + earthquakeNoticeText.push(...((message.earthquake.foreignTsunami ?? "Unknown") === "Unknown" ? [] : [foreignTsunamiMessages[(message.earthquake.foreignTsunami)]])); earthquakeNoticeText.push(...(pointsMsg === ""