API確認の複数の問題を修正
This commit is contained in:
parent
081d1eca6e
commit
1c10aeb9e4
|
@ -12,15 +12,12 @@ export default async function APICheck() {
|
||||||
|
|
||||||
const res = await req.json();
|
const res = await req.json();
|
||||||
|
|
||||||
if (
|
if (!res.userid) {
|
||||||
res.isBot === undefined ||
|
|
||||||
res.isBot === null
|
|
||||||
) {
|
|
||||||
console.log(styleText("red", "APIトークンあるいはuwuzuサーバーホストが無効です"));
|
console.log(styleText("red", "APIトークンあるいはuwuzuサーバーホストが無効です"));
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!res.isBot) {
|
if (res.isBot === false) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log(styleText("yellow", "使用するアカウントでBOTフラグが設定されていません"));
|
console.log(styleText("yellow", "使用するアカウントでBOTフラグが設定されていません"));
|
||||||
}, 1500);
|
}, 1500);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "notice-uwuzu",
|
"name": "notice-uwuzu",
|
||||||
"version": "v6.0.2@uwuzu1.5.4",
|
"version": "v6.0.3@uwuzu1.5.4",
|
||||||
"description": "uwuzu Notice Bot",
|
"description": "uwuzu Notice Bot",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue