API確認の複数の問題を修正
This commit is contained in:
+2
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user