dotenvを廃止しconfig.tsへ・天気の分割数をconfigで変更できるように・デバッグ用のサンプルログを.gitignoreに追加・地震情報解析の修正

This commit is contained in:
2025-07-01 16:59:45 +09:00
parent 007efd85a8
commit 7e3c4840d3
11 changed files with 147 additions and 292 deletions
+4 -5
View File
@@ -1,9 +1,8 @@
import * as dotenv from "dotenv";
import { format } from "date-fns";
import type * as types from "../types";
import type * as types from "types/types";
dotenv.config();
import config from "../config.js";
export default async function timeNotice() {
// 現在時刻を取得
@@ -11,11 +10,11 @@ export default async function timeNotice() {
// 投稿
const resUeuse = await fetch(
`https://${process.env.SERVER}/api/ueuse/create`,
`https://${config.uwuzuServer}/api/ueuse/create`,
{
method: "POST",
body: JSON.stringify({
token: process.env.TOKEN,
token: config.apiToken,
text: `${now}になりました`,
}),
},