Compare commits

..

2 Commits

Author SHA1 Message Date
last2014 844a9cd058 APIの500問題を修正 2025-08-01 19:39:21 +09:00
last2014 2a30fdf1e9 v7.0.1(LTS)をリリース 2025-08-01 19:09:18 +09:00
4 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import * as cron from "node-cron";
import timeNotice from "./scripts/timeNotice.js";
import { weatherNotice } from "./scripts/weatherNotice.js";
import earthquakeNotice from "./scripts/earthquakeNotice.js";
import Commands from "scripts/commands/main.js";
import Commands from "./scripts/commands/main.js";
// その他機能
import asciiArt from "./scripts/asciiart.js";
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "notice-uwuzu",
"version": "v7.0(unconfirmed)@uwuzu1.5.4",
"version": "v7.0.2(LTS)@uwuzu1.5.4",
"description": "Notice Bot for uwuzu",
"main": "dist/main.js",
"scripts": {
+6 -4
View File
@@ -19,7 +19,7 @@ if (!fs.existsSync("logs/alreadyCommands.json")) {
}
// 対応済みユーズ一覧
const alreadyCommands: Array<string> = JSON.parse(fs.readFileSync("alreadyCommands.json", "utf-8"));
const alreadyCommands: Array<string> = JSON.parse(fs.readFileSync("logs/alreadyCommands.json", "utf-8"));
function cutAfterChar(str: string, char: string) {
const index = str.indexOf(char);
@@ -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("コマンド処理");
+1 -1
View File
@@ -1,4 +1,4 @@
import { weatherReply } from "scripts/weatherNotice";
import { weatherReply } from "../weatherNotice.js";
import { ueuse } from "types/types.js";
export default function Weather(data: ueuse) {