Compare commits
3 Commits
aff5d4e54d
...
2026.5.8
| Author | SHA1 | Date | |
|---|---|---|---|
| b461304d65 | |||
| bf8e998d14 | |||
| 3c7fa8fe82 |
@@ -1,3 +1,8 @@
|
|||||||
|
# 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.5.8",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+3
-4
@@ -1,4 +1,3 @@
|
|||||||
onlyBuiltDependencies:
|
allowBuilds:
|
||||||
- "better-uwuzu-sdk"
|
canvas: true
|
||||||
- "miq"
|
sharp: true
|
||||||
- sharp
|
|
||||||
@@ -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}`]));
|
||||||
@@ -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