深さ判定に.earthquake.をスキップしてhypocenterを参照していた問題を修正(v5.1.1)

This commit is contained in:
Last2014 2025-07-08 13:47:10 +09:00
parent d28ca6ce4c
commit 3955d91978
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -351,7 +351,7 @@ async function event(earthquakeInfo: any): Promise<void> {
if (earthquakeInfo.earthquake.hypocenter.depth === 0) {
depth = "深さ:ごく浅い";
} else {
depth = `深さ:${earthquakeInfo.hypocenter.depth}km`;
depth = `深さ:${String(earthquakeInfo.earthquake.hypocenter.depth)}km`;
}
}
@ -363,7 +363,7 @@ async function event(earthquakeInfo: any): Promise<void> {
earthquakeInfo.earthquake.hypocenter.magnitude !== undefined ||
earthquakeInfo.earthquake.hypocenter.magnitude !== -1
) {
magnitude = `マグニチュード:${earthquakeInfo.earthquake.hypocenter.magnitude}`;
magnitude = `マグニチュード:${String(earthquakeInfo.earthquake.hypocenter.magnitude)}`;
}
ueuse(`