2026.4.0-alpha.2 #11

Merged
last2014 merged 6 commits from develop into main 2026-05-01 13:12:21 +00:00
3 changed files with 23 additions and 1 deletions
Showing only changes of commit 23a06fc88f - Show all commits
+4
View File
@@ -50,6 +50,10 @@ eewNotice: |
📍震源地: {{ epicenter }}
💪マグニチュード: {{ magnitude }}
🪨深さ: {{ depth }}{{ areas }}
eewCancelNotice: |
### ==緊急地震速報(警報)**解除**==
{{ isTest }}
⏰発表時刻: {{ announceTime }}
hnyNotice: |
あけましておめでとうございます。今年は、{{ year }}年です。
commandNotFound: |
+18
View File
@@ -237,6 +237,24 @@ const processMessage = async (message: any) => {
{
console.log("緊急地震速報(警報)を受信しました");
if (message.cancelled) {
const response = await client.request("ueuse/create", {
text: i18next.t("eewCancelNotice", {
isTest: message.test
? "⚒️これは**テストです。**"
: "🚨これは**テストではありません。**",
announceTime: format(new Date(message.issue.time), "yyyy年M月d日 H:mm:ss"),
}),
});
if (!response.success) {
console.warn("ユーズの作成に失敗しました:", response.error_code);
break;
}
console.log("緊急地震速報(警報)解除情報を投稿:", response.uniqid);
}
const kindMessages: Record<string, string> = {
"10": "⏳主要動は、**未到達と予測**されています。",
"11": "🫨主要動が、**既に到達していると予測**されています。",
+1 -1
View File
@@ -8,7 +8,7 @@ console.log("時報の投稿を行います");
try {
const response = await client.request("ueuse/create", {
text: i18next.t("timeNotice", { time: format(new Date(), "HH:mm") }),
text: i18next.t("timeNotice", { time: format(new Date(), "H:mm") }),
});
if (!response.success) {