APIの500問題を修正
This commit is contained in:
parent
2a30fdf1e9
commit
844a9cd058
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "notice-uwuzu",
|
"name": "notice-uwuzu",
|
||||||
"version": "v7.0.1(LTS)@uwuzu1.5.4",
|
"version": "v7.0.2(LTS)@uwuzu1.5.4",
|
||||||
"description": "Notice Bot for uwuzu",
|
"description": "Notice Bot for uwuzu",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -57,14 +57,16 @@ function alreadyAdd(data: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async function Commands() {
|
export default async function Commands() {
|
||||||
const mentions: Array<ueuse> = await (await fetch(
|
const mentionsReq = await fetch(
|
||||||
`https://${config.uwuzu.host}/api/ueuse/mentions/`, {
|
`https://${config.uwuzu.host}/api/ueuse/mentions`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
token: config.uwuzu.apiToken,
|
token: config.uwuzu.apiToken,
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
)).json();
|
);
|
||||||
|
|
||||||
|
const mentions: Array<ueuse> = await mentionsReq.json();
|
||||||
|
|
||||||
console.log("----------------");
|
console.log("----------------");
|
||||||
console.log("コマンド処理");
|
console.log("コマンド処理");
|
||||||
|
|
Loading…
Reference in New Issue