Compare commits

..

1 Commits

Author SHA1 Message Date
last2014 734b573a3b Merge pull request '2026.5.4' (#21) from develop into main
Reviewed-on: #21
2026-05-17 05:43:39 +00:00
5 changed files with 7 additions and 20 deletions
-5
View File
@@ -1,8 +1,3 @@
# 2026.5.5
- Chg: 毎日7:00の天気予報の日付表記
- Fix: 20件前のユーズを最後に応答したコマンドのユーズとして記録していた問題
- Fix: 毎日18:00の天気予報の仮投稿の表記が本日になっていた問題
# 2026.5.4
- Chg: メモリをキャッシュしないように
+1 -1
View File
@@ -1,6 +1,6 @@
timeNotice: "{{ time }}になりました。"
weatherProvisional: |
{{ day }}の天気
本日の天気
※タイムラインが埋まるため返信に記載しています。
weatherReply: |
【{{ city }}】
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "notice-uwuzu",
"version": "2026.5.5",
"version": "2026.5.4",
"type": "module",
"main": "dist/index.js",
"scripts": {
+4 -8
View File
@@ -22,10 +22,7 @@ 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");
@@ -44,7 +41,7 @@ try {
if (mem.lastReadReply >= time)
break;
if (index === notifications.length - 1)
if (index === 0)
newLastReadReply = time;
ueuses.push(ueuseData);
@@ -69,7 +66,7 @@ try {
if (mem.lastReadMention >= time)
break;
if (index === mentions.length - 1)
if (index === 0)
newLastReadMention = time;
ueuses.push(mention);
@@ -85,8 +82,7 @@ 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;
});
+1 -5
View File
@@ -72,11 +72,7 @@ if (
for (let attempt = 1; attempt <= config.ueuse.maxRetries; attempt++) {
provisionalUeuse = await client.request("ueuse/create", {
text: i18next.t("weatherProvisional", {
day: workerData.endsWith("Tomorrow")
? "明日"
: "今日",
}),
text: i18next.t("weatherProvisional"),
});
if (provisionalUeuse.success) {