Fix: 地震情報に津波の心配についての情報が記載されない問題 / v1.0.4
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "earthquake-bot-for-mtweet",
|
"name": "earthquake-bot-for-mtweet",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -170,10 +170,10 @@ const processMessage = async (message: any) => {
|
|||||||
: [`🪨深さ: ${message.earthquake.hypocenter.depth === 0
|
: [`🪨深さ: ${message.earthquake.hypocenter.depth === 0
|
||||||
? "ごく浅い"
|
? "ごく浅い"
|
||||||
: `${message.earthquake.hypocenter.depth}km`}`]));
|
: `${message.earthquake.hypocenter.depth}km`}`]));
|
||||||
earthquakeNoticeText.push(...(message.earthquake.domesticTsunami ?? "Unknown" === "Unknown"
|
earthquakeNoticeText.push(...((message.earthquake.domesticTsunami ?? "Unknown") === "Unknown"
|
||||||
? []
|
? []
|
||||||
: [domesticTsunamiMessages[(message.earthquake.domesticTsunami)]]));
|
: [domesticTsunamiMessages[(message.earthquake.domesticTsunami)]]));
|
||||||
earthquakeNoticeText.push(...(message.earthquake.foreignTsunami ?? "Unknown" === "Unknown"
|
earthquakeNoticeText.push(...((message.earthquake.foreignTsunami ?? "Unknown") === "Unknown"
|
||||||
? []
|
? []
|
||||||
: [foreignTsunamiMessages[(message.earthquake.foreignTsunami)]]));
|
: [foreignTsunamiMessages[(message.earthquake.foreignTsunami)]]));
|
||||||
earthquakeNoticeText.push(...(pointsMsg === ""
|
earthquakeNoticeText.push(...(pointsMsg === ""
|
||||||
|
|||||||
Reference in New Issue
Block a user