From 386555ecf36536494bda4d4e41c1d7cfcf135d3c Mon Sep 17 00:00:00 2001 From: Last2014 Date: Sun, 17 May 2026 19:35:13 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E6=AF=8E=E6=97=A518:00=E3=81=AE?= =?UTF-8?q?=E5=A4=A9=E6=B0=97=E4=BA=88=E5=A0=B1=E3=81=AE=E4=BB=AE=E6=8A=95?= =?UTF-8?q?=E7=A8=BF=E3=81=AE=E8=A1=A8=E8=A8=98=E3=81=8C=E6=9C=AC=E6=97=A5?= =?UTF-8?q?=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=20/=20Chg:=20=E6=AF=8E=E6=97=A57:00=E3=81=AE=E5=A4=A9?= =?UTF-8?q?=E6=B0=97=E4=BA=88=E5=A0=B1=E3=81=AE=E6=97=A5=E4=BB=98=E8=A1=A8?= =?UTF-8?q?=E8=A8=98=20/=20Fix:=2020=E4=BB=B6=E5=89=8D=E3=81=AE=E3=83=A6?= =?UTF-8?q?=E3=83=BC=E3=82=BA=E3=82=92=E6=9C=80=E5=BE=8C=E3=81=AB=E5=BF=9C?= =?UTF-8?q?=E7=AD=94=E3=81=97=E3=81=9F=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=81=AE=E3=83=A6=E3=83=BC=E3=82=BA=E3=81=A8=E3=81=97=E3=81=A6?= =?UTF-8?q?=E8=A8=98=E9=8C=B2=E3=81=97=E3=81=A6=E3=81=84=E3=81=9F=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=20/=202026.5.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ locales/ja.yaml | 2 +- package.json | 2 +- src/feature/command/index.ts | 12 ++++++++---- src/feature/weatherNotice.ts | 6 +++++- 5 files changed, 20 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f88d53..ae9fa07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2026.5.5 +- Chg: 毎日7:00の天気予報の日付表記 +- Fix: 20件前のユーズを最後に応答したコマンドのユーズとして記録していた問題 +- Fix: 毎日18:00の天気予報の仮投稿の表記が本日になっていた問題 + # 2026.5.4 - Chg: メモリをキャッシュしないように diff --git a/locales/ja.yaml b/locales/ja.yaml index f985400..21e0470 100644 --- a/locales/ja.yaml +++ b/locales/ja.yaml @@ -1,6 +1,6 @@ timeNotice: "{{ time }}になりました。" weatherProvisional: | - 本日の天気 + {{ day }}の天気 ※タイムラインが埋まるため返信に記載しています。 weatherReply: | 【{{ city }}】 diff --git a/package.json b/package.json index c674248..5febe1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notice-uwuzu", - "version": "2026.5.4", + "version": "2026.5.5", "type": "module", "main": "dist/index.js", "scripts": { diff --git a/src/feature/command/index.ts b/src/feature/command/index.ts index c929732..03e1c5e 100644 --- a/src/feature/command/index.ts +++ b/src/feature/command/index.ts @@ -22,7 +22,10 @@ try { let newLastReadMention = mem.lastReadMention; { - const response = await client.request("me/notification/", { page: 1, limit: 20 }); + const response = await client.request("me/notification/", { + page: 1, + limit: 20, + }); if (response.success) { const notifications = response.data.filter(n => n.category === "reply" && typeof n.valueid === "string"); @@ -41,7 +44,7 @@ try { if (mem.lastReadReply >= time) break; - if (index === 0) + if (index === notifications.length - 1) newLastReadReply = time; ueuses.push(ueuseData); @@ -66,7 +69,7 @@ try { if (mem.lastReadMention >= time) break; - if (index === 0) + if (index === mentions.length - 1) newLastReadMention = time; ueuses.push(mention); @@ -82,7 +85,8 @@ try { const seenIds = new Set(); ueuses = ueuses.filter(ueuse => { - if (seenIds.has(ueuse.uniqid)) return false; + if (seenIds.has(ueuse.uniqid)) + return false; seenIds.add(ueuse.uniqid); return true; }); diff --git a/src/feature/weatherNotice.ts b/src/feature/weatherNotice.ts index 8282583..1eb0233 100644 --- a/src/feature/weatherNotice.ts +++ b/src/feature/weatherNotice.ts @@ -72,7 +72,11 @@ if ( for (let attempt = 1; attempt <= config.ueuse.maxRetries; attempt++) { provisionalUeuse = await client.request("ueuse/create", { - text: i18next.t("weatherProvisional"), + text: i18next.t("weatherProvisional", { + day: workerData.endsWith("Tomorrow") + ? "明日" + : "今日", + }), }); if (provisionalUeuse.success) {