Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c10aeb9e4 |
+2
-5
@@ -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
-1
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user