From b9a4fe8763f00f50ab7ab562a830de65886ae110 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Tue, 26 Aug 2025 22:54:56 +0900 Subject: [PATCH] v25.8.9 --- package.json | 4 ++-- scripts/commands/miq/allow.ts | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1ddf1ee..79df8d4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "notice-uwuzu", - "version": "v25.8.8@uwuzu1.6.4", - "tag": "v25.8.8", + "version": "v25.8.9@uwuzu1.6.4", + "tag": "v25.8.9", "description": "Notice Bot for uwuzu", "main": "dist/main.js", "scripts": { diff --git a/scripts/commands/miq/allow.ts b/scripts/commands/miq/allow.ts index 613b0de..44c6d60 100644 --- a/scripts/commands/miq/allow.ts +++ b/scripts/commands/miq/allow.ts @@ -14,6 +14,12 @@ export default async function MiQAllow(data: ueuse) { return; } + if (data.replyid === "") { + console.log("MiQ許可制(誤ユーズ):", await Reply(` + 形式が正規ではありません。 + `, data.uniqid)); + } + // 権限一覧取得 const permissions: { [user: string]: Permission } = JSON.parse(readFileSync("data/miqPermissions.json", "utf-8")); @@ -38,7 +44,7 @@ export default async function MiQAllow(data: ueuse) { ).json())["0"]; const me: meApi = await ( - await fetch(`${config.uwuzu.host}/api/me`, { + await fetch(`${config.uwuzu.host}/api/me/`, { method: "POST", cache: "no-store", body: JSON.stringify({