Feat: ユーズの再試行 / Feat: ユーズの文字数制限回避 / Feat: ユーズ送信関数 / Chg: weatherNotice.tsのマジックナンバーに命名

This commit is contained in:
2026-05-03 13:50:11 +09:00
parent 74c1552472
commit d429503b78
12 changed files with 201 additions and 297 deletions
+5 -10
View File
@@ -1,4 +1,4 @@
import client from "@/lib/client";
import client, { createUeuse } from "@/lib/client";
import Memory from "@/lib/memory";
import ueuseModule from "better-uwuzu-sdk/types/1.6.8/types/modules/ueuse";
import i18next from "i18next";
@@ -100,13 +100,10 @@ try {
if (!commandRow || commandRow === "") {
console.warn("コマンドが本文から参照できません");
const response = await client.request("ueuse/create", {
await createUeuse({
text: i18next.t("commandNotFound"),
replyid: ueuse.uniqid,
});
if (!response.success)
console.warn("ユーズの作成に失敗しました:", response.error_code);
}, "コマンドが見つからない旨");
return;
}
@@ -132,13 +129,11 @@ try {
default:
console.warn("不明なコマンドが入力されました:", args[0]);
const response = await client.request("ueuse/create", {
await createUeuse({
text: i18next.t("unknownCommand", { command: args[0] }),
replyid: ueuse.uniqid,
});
}, "コマンドが不明である旨");
if (!response.success)
console.warn("ユーズの作成に失敗しました:", response.error_code);
break;
}
}));