From 844a9cd0585622402f9b2bdd862b920f2ac6d057 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Fri, 1 Aug 2025 19:39:21 +0900 Subject: [PATCH] =?UTF-8?q?API=E3=81=AE500=E5=95=8F=E9=A1=8C=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- scripts/commands/main.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 85d5a6e..d298e01 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notice-uwuzu", - "version": "v7.0.1(LTS)@uwuzu1.5.4", + "version": "v7.0.2(LTS)@uwuzu1.5.4", "description": "Notice Bot for uwuzu", "main": "dist/main.js", "scripts": { diff --git a/scripts/commands/main.ts b/scripts/commands/main.ts index 25e9bc0..0e6fe37 100644 --- a/scripts/commands/main.ts +++ b/scripts/commands/main.ts @@ -57,14 +57,16 @@ function alreadyAdd(data: string) { } export default async function Commands() { - const mentions: Array = await (await fetch( - `https://${config.uwuzu.host}/api/ueuse/mentions/`, { + const mentionsReq = await fetch( + `https://${config.uwuzu.host}/api/ueuse/mentions`, { method: "POST", body: JSON.stringify({ token: config.uwuzu.apiToken, }), } - )).json(); + ); + + const mentions: Array = await mentionsReq.json(); console.log("----------------"); console.log("コマンド処理");