2026.4.0-alpha.0

This commit is contained in:
2026-04-27 19:55:50 +09:00
commit ecbfc828d6
24 changed files with 3131 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import client from "@/lib/client";
import ueuseModule from "better-uwuzu-sdk/types/1.6.8/types/modules/ueuse";
import i18next from "i18next";
export default async function unfollowCommand(ueuse: ueuseModule) {
const unfollow = await client.request("users/unfollow", {
userid: ueuse.account.userid,
});
if (!unfollow.success) {
console.warn("フォロー解除に失敗:", unfollow.error_code);
return;
}
console.log("フォロー解除:", unfollow.userid);
const notice = await client.request("ueuse/create", {
text: i18next.t("unfollowedNotification", { username: ueuse.account.username }),
replyid: ueuse.uniqid,
});
if (!notice.success) {
console.warn("フォロー解除通知に失敗:", notice.error_code);
}
console.log("フォロー解除通知:", notice.uniqid);
}