停止時間のBooleanを使いまわしている問題を修正(v4.3.3)

This commit is contained in:
Last2014 2025-07-06 08:53:02 +09:00
parent ef374b1639
commit 05194ad7b8
2 changed files with 18 additions and 20 deletions

View File

@ -1,6 +1,6 @@
{
"name": "noticeuwuzu",
"version": "v4.3.2@uwuzu1.5.4",
"version": "v4.3.3@uwuzu1.5.4",
"description": "uwuzu Notice Bot",
"main": "dist/main.js",
"scripts": {

View File

@ -3,6 +3,8 @@ import { format } from "date-fns";
import type * as types from "types/types";
import config from "../config.js";
export default async function timeNotice() {
console.log("----------------");
// 停止時間
// 時刻取得
@ -21,10 +23,6 @@ if (start < stop) {
inRange = nowHour >= start || nowHour < stop;
}
export default async function timeNotice() {
console.log("----------------");
if (inRange) {
console.log("時報休止期間のため投稿されませんでした");
return;