dotenvを廃止しconfig.tsへ・天気の分割数をconfigで変更できるように・デバッグ用のサンプルログを.gitignoreに追加・地震情報解析の修正
This commit is contained in:
@@ -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}になりました`,
|
||||
}),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user