Feat: ユーズの再試行 / Feat: ユーズの文字数制限回避 / Feat: ユーズ送信関数 / Chg: weatherNotice.tsのマジックナンバーに命名
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import client from "@/lib/client";
|
||||
import client, { createUeuse } from "@/lib/client";
|
||||
import ueuseModule from "better-uwuzu-sdk/types/1.6.8/types/modules/ueuse";
|
||||
import i18next from "i18next";
|
||||
|
||||
@@ -14,15 +14,8 @@ export default async function unfollowCommand(ueuse: ueuseModule) {
|
||||
|
||||
console.log("フォロー解除:", unfollow.userid);
|
||||
|
||||
const notice = await client.request("ueuse/create", {
|
||||
await createUeuse({
|
||||
text: i18next.t("unfollowedNotification", { username: ueuse.account.username }),
|
||||
replyid: ueuse.uniqid,
|
||||
});
|
||||
|
||||
if (!notice.success) {
|
||||
console.warn("フォロー解除通知に失敗:", notice.error_code);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("フォロー解除通知:", notice.uniqid);
|
||||
}, "フォロー解除通知");
|
||||
}
|
||||
Reference in New Issue
Block a user