From 1c10aeb9e467c0d4200610627ec01a84a4329f98 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Sat, 26 Jul 2025 21:46:19 +0900 Subject: [PATCH] =?UTF-8?q?API=E7=A2=BA=E8=AA=8D=E3=81=AE=E8=A4=87?= =?UTF-8?q?=E6=95=B0=E3=81=AE=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- checks/api.ts | 7 ++----- package.json | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/checks/api.ts b/checks/api.ts index 554d71e..cd0d437 100644 --- a/checks/api.ts +++ b/checks/api.ts @@ -12,15 +12,12 @@ export default async function APICheck() { const res = await req.json(); - if ( - res.isBot === undefined || - res.isBot === null - ) { + if (!res.userid) { console.log(styleText("red", "APIトークンあるいはuwuzuサーバーホストが無効です")); process.exit(); } - if (!res.isBot) { + if (res.isBot === false) { setTimeout(() => { console.log(styleText("yellow", "使用するアカウントでBOTフラグが設定されていません")); }, 1500); diff --git a/package.json b/package.json index 4004bcd..818cf23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notice-uwuzu", - "version": "v6.0.2@uwuzu1.5.4", + "version": "v6.0.3@uwuzu1.5.4", "description": "uwuzu Notice Bot", "main": "dist/main.js", "scripts": {