Compare commits
12 Commits
fc5256c681
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2bc95caba0 | |||
| d3dd0e305a | |||
| bfec619940 | |||
| f03446fd48 | |||
| 86dfc97c7a | |||
| 599b623b8d | |||
| c2b324dc6d | |||
| 3fe876a239 | |||
| b461304d65 | |||
| bf8e998d14 | |||
| 3c7fa8fe82 | |||
| aff5d4e54d |
@@ -1,3 +1,14 @@
|
|||||||
|
# 2026.6.0
|
||||||
|
- Fix: 地震情報で津波の心配についての情報が記載されない問題
|
||||||
|
|
||||||
|
# 2026.5.9
|
||||||
|
- Fix: pnpmが動作しない問題
|
||||||
|
|
||||||
|
# 2026.5.8
|
||||||
|
- Fix: 地震情報の情報源と各震度の間に改行がない問題
|
||||||
|
- Fix: 最大震度が不明な場合にも行が追加される問題
|
||||||
|
- Fix: pnpmが動作しない問題
|
||||||
|
|
||||||
# 2026.5.7
|
# 2026.5.7
|
||||||
- Feat: 朝四時に何してるんだい?
|
- Feat: 朝四時に何してるんだい?
|
||||||
- Chg: pnpm 11.1.3
|
- Chg: pnpm 11.1.3
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "notice-uwuzu",
|
"name": "notice-uwuzu",
|
||||||
"version": "2026.5.7",
|
"version": "2026.6.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+5
-4
@@ -1,4 +1,5 @@
|
|||||||
onlyBuiltDependencies:
|
allowBuilds:
|
||||||
- "better-uwuzu-sdk"
|
canvas: true
|
||||||
- "miq"
|
sharp: true
|
||||||
- sharp
|
better-uwuzu-sdk: true
|
||||||
|
miq: true
|
||||||
@@ -168,7 +168,9 @@ const processMessage = async (message: any) => {
|
|||||||
const earthquakeNoticeText = [];
|
const earthquakeNoticeText = [];
|
||||||
earthquakeNoticeText.push(`### ${typeMessage[message.issue.type] ?? "地震情報"}`);
|
earthquakeNoticeText.push(`### ${typeMessage[message.issue.type] ?? "地震情報"}`);
|
||||||
earthquakeNoticeText.push(`⏰時刻: ${format(new Date(message.earthquake.time), "yyyy年M月d日 H:mm")}頃`);
|
earthquakeNoticeText.push(`⏰時刻: ${format(new Date(message.earthquake.time), "yyyy年M月d日 H:mm")}頃`);
|
||||||
earthquakeNoticeText.push(`🫨最大震度: ${scaleMessages[String(message.earthquake.maxScale)]}`);
|
earthquakeNoticeText.push(...(message.earthquake.maxScale === -1
|
||||||
|
? []
|
||||||
|
: [`🫨最大震度: ${scaleMessages[String(message.earthquake.maxScale)]}`]));
|
||||||
earthquakeNoticeText.push(...(message.earthquake.hypocenter.name === ""
|
earthquakeNoticeText.push(...(message.earthquake.hypocenter.name === ""
|
||||||
? []
|
? []
|
||||||
: [`📍震源地: ${message.earthquake.hypocenter.name}`]));
|
: [`📍震源地: ${message.earthquake.hypocenter.name}`]));
|
||||||
@@ -180,10 +182,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 === ""
|
||||||
@@ -192,7 +194,7 @@ const processMessage = async (message: any) => {
|
|||||||
earthquakeNoticeText.push(...(message.comments.freeFormComment === ""
|
earthquakeNoticeText.push(...(message.comments.freeFormComment === ""
|
||||||
? []
|
? []
|
||||||
: [message.comments.freeFormComment]));
|
: [message.comments.freeFormComment]));
|
||||||
earthquakeNoticeText.push(`🔬情報源: P2P地震速報 - ${message.issue.source ?? "不明"}`);
|
earthquakeNoticeText.push(EOL + `🔬情報源: P2P地震速報 - ${message.issue.source ?? "不明"}`);
|
||||||
const earthquakeUeuses = await createUeuse({
|
const earthquakeUeuses = await createUeuse({
|
||||||
text: earthquakeNoticeText.join(EOL),
|
text: earthquakeNoticeText.join(EOL),
|
||||||
}, "地震発生情報");
|
}, "地震発生情報");
|
||||||
|
|||||||
Reference in New Issue
Block a user