diff --git a/package.json b/package.json index f6e427f..14e5347 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/scripts/earthquakeNotice.ts b/scripts/earthquakeNotice.ts index c248fe7..bcb9084 100644 --- a/scripts/earthquakeNotice.ts +++ b/scripts/earthquakeNotice.ts @@ -351,7 +351,7 @@ async function event(earthquakeInfo: any): Promise { 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 { earthquakeInfo.earthquake.hypocenter.magnitude !== undefined || earthquakeInfo.earthquake.hypocenter.magnitude !== -1 ) { - magnitude = `マグニチュード:${earthquakeInfo.earthquake.hypocenter.magnitude}`; + magnitude = `マグニチュード:${String(earthquakeInfo.earthquake.hypocenter.magnitude)}`; } ueuse(`