Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 05194ad7b8 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "noticeuwuzu",
|
"name": "noticeuwuzu",
|
||||||
"version": "v4.3.2@uwuzu1.5.4",
|
"version": "v4.3.3@uwuzu1.5.4",
|
||||||
"description": "uwuzu Notice Bot",
|
"description": "uwuzu Notice Bot",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ import { format } from "date-fns";
|
|||||||
import type * as types from "types/types";
|
import type * as types from "types/types";
|
||||||
import config from "../config.js";
|
import config from "../config.js";
|
||||||
|
|
||||||
|
export default async function timeNotice() {
|
||||||
|
console.log("----------------");
|
||||||
|
|
||||||
// 停止時間
|
// 停止時間
|
||||||
// 時刻取得
|
// 時刻取得
|
||||||
@@ -21,10 +23,6 @@ if (start < stop) {
|
|||||||
inRange = nowHour >= start || nowHour < stop;
|
inRange = nowHour >= start || nowHour < stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default async function timeNotice() {
|
|
||||||
console.log("----------------");
|
|
||||||
|
|
||||||
if (inRange) {
|
if (inRange) {
|
||||||
console.log("時報休止期間のため投稿されませんでした");
|
console.log("時報休止期間のため投稿されませんでした");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user