Compare commits

...

1 Commits

Author SHA1 Message Date
last2014 844a9cd058 APIの500問題を修正 2025-08-01 19:39:21 +09:00
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -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": {
+5 -3
View File
@@ -57,14 +57,16 @@ function alreadyAdd(data: string) {
}
export default async function Commands() {
const mentions: Array<ueuse> = 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<ueuse> = await mentionsReq.json();
console.log("----------------");
console.log("コマンド処理");