From a2576f961b5b20088800c2cea34d1c6363ab293e Mon Sep 17 00:00:00 2001 From: Last2014 Date: Fri, 1 Aug 2025 19:53:41 +0900 Subject: [PATCH] =?UTF-8?q?API=E3=83=91=E3=82=B9=E3=81=AE=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=83=BB=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E7=94=A8?= =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88?= =?UTF-8?q?=E3=82=92=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/follow.ts | 2 +- scripts/commands/unfollow.ts | 4 ++-- scripts/earthquakeNotice.ts | 5 ++--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index d298e01..940b1bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notice-uwuzu", - "version": "v7.0.2(LTS)@uwuzu1.5.4", + "version": "v7.1(LTS)@uwuzu1.5.4", "description": "Notice Bot for uwuzu", "main": "dist/main.js", "scripts": { diff --git a/scripts/commands/follow.ts b/scripts/commands/follow.ts index 2199972..6df8280 100644 --- a/scripts/commands/follow.ts +++ b/scripts/commands/follow.ts @@ -2,7 +2,7 @@ import { ueuse } from "types/types.js"; import config from "../../config.js"; export default async function Follow(data: ueuse) { - const followReq = await fetch(`https://${config.uwuzu.host}/api/users/follow/`, { + const followReq = await fetch(`https://${config.uwuzu.host}/api/users/follow`, { method: "POST", body: JSON.stringify({ token: config.uwuzu.apiToken, diff --git a/scripts/commands/unfollow.ts b/scripts/commands/unfollow.ts index 05c3b94..6a4f1cd 100644 --- a/scripts/commands/unfollow.ts +++ b/scripts/commands/unfollow.ts @@ -2,7 +2,7 @@ import { ueuse } from "types/types.js"; import config from "../../config.js"; export default async function UnFollow(data: ueuse) { - const unfollowReq = await fetch(`https://${config.uwuzu.host}/api/users/unfollow/`, { + const unfollowReq = await fetch(`https://${config.uwuzu.host}/api/users/unfollow`, { method: "POST", body: JSON.stringify({ token: config.uwuzu.apiToken, @@ -14,7 +14,7 @@ export default async function UnFollow(data: ueuse) { console.log("フォロー解除: ", unfollowRes); - const noticeReq = await fetch(`https://${config.uwuzu.host}/api/ueuse/create/`, { + const noticeReq = await fetch(`https://${config.uwuzu.host}/api/ueuse/create`, { method: "POST", body: JSON.stringify({ token: config.uwuzu.apiToken, diff --git a/scripts/earthquakeNotice.ts b/scripts/earthquakeNotice.ts index 48fcb34..6f119c2 100644 --- a/scripts/earthquakeNotice.ts +++ b/scripts/earthquakeNotice.ts @@ -476,8 +476,7 @@ async function event(earthquakeInfo: any): Promise { } async function ueuse(text: string) { - console.log(text); - /*const res = await fetch(`https://${config.uwuzu.host}/api/ueuse/create/`, { + const res = await fetch(`https://${config.uwuzu.host}/api/ueuse/create`, { method: "POST", body: JSON.stringify({ token: config.uwuzu.apiToken, @@ -487,7 +486,7 @@ async function ueuse(text: string) { const resData = await res.json(); - console.log(`地震情報投稿:${JSON.stringify(resData)}`);*/ + console.log(`地震情報投稿:${JSON.stringify(resData)}`); } export default function earthquakeNotice(): void {