2026.5.7 #24
@@ -1,3 +1,9 @@
|
|||||||
|
# 2026.5.7
|
||||||
|
- Feat: 朝四時に何してるんだい?
|
||||||
|
- Chg: pnpm 11.1.3
|
||||||
|
- Chg: 地震情報で不明な情報をそもそも投稿しないように
|
||||||
|
- Del: helpコマンドとmiqコマンドを除く全てのi18nを廃止
|
||||||
|
|
||||||
# 2026.5.6
|
# 2026.5.6
|
||||||
- Fix: 2026.5.5で修正されたと報告した「20件前のユーズを最後に応答したコマンドのユーズとして記録していた問題」を再発させていた問題
|
- Fix: 2026.5.5で修正されたと報告した「20件前のユーズを最後に応答したコマンドのユーズとして記録していた問題」を再発させていた問題
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "notice-uwuzu",
|
"name": "notice-uwuzu",
|
||||||
"version": "2026.5.6",
|
"version": "2026.5.7",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -168,20 +168,24 @@ 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(`🫨最大震度: ${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}`]));
|
||||||
earthquakeNoticeText.push(`💪マグニチュード: ${message.earthquake.hypocenter.magnitude === -1
|
earthquakeNoticeText.push(...(message.earthquake.hypocenter.magnitude === -1
|
||||||
? "不明"
|
? []
|
||||||
: `M${message.earthquake.hypocenter.magnitude.toFixed(1)}`}`);
|
: [`💪マグニチュード: M${message.earthquake.hypocenter.magnitude.toFixed(1)}`]));
|
||||||
earthquakeNoticeText.push(`🪨深さ: ${message.earthquake.hypocenter.depth === 0
|
earthquakeNoticeText.push(...(message.earthquake.hypocenter.depth === -1
|
||||||
|
? []
|
||||||
|
: [`🪨深さ: ${message.earthquake.hypocenter.depth === 0
|
||||||
? "ごく浅い"
|
? "ごく浅い"
|
||||||
: message.earthquake.hypocenter.depth === -1
|
: `${message.earthquake.hypocenter.depth}km`}`]));
|
||||||
? "不明"
|
earthquakeNoticeText.push(...(message.earthquake.domesticTsunami ?? "Unknown" === "Unknown"
|
||||||
: `${message.earthquake.hypocenter.depth}km`}`);
|
? []
|
||||||
earthquakeNoticeText.push(domesticTsunamiMessages[(message.earthquake.domesticTsunami ?? "Unknown")]);
|
: [domesticTsunamiMessages[(message.earthquake.domesticTsunami)]]));
|
||||||
earthquakeNoticeText.push(foreignTsunamiMessages[(message.earthquake.foreignTsunami ?? "Unknown")]);
|
earthquakeNoticeText.push(...(message.earthquake.foreignTsunami ?? "Unknown" === "Unknown"
|
||||||
|
? []
|
||||||
|
: [foreignTsunamiMessages[(message.earthquake.foreignTsunami)]]));
|
||||||
earthquakeNoticeText.push(...(pointsMsg === ""
|
earthquakeNoticeText.push(...(pointsMsg === ""
|
||||||
? []
|
? []
|
||||||
: [EOL + pointsMsg]));
|
: [EOL + pointsMsg]));
|
||||||
|
|||||||
Reference in New Issue
Block a user