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": {