Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 05194ad7b8 | |||
| ef374b1639 | |||
| 563d70aacd |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "noticeuwuzu",
|
"name": "noticeuwuzu",
|
||||||
"version": "v4.3@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": {
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ async function event(earthquakeInfo: any): Promise<void> {
|
|||||||
// 地域情報更新の場合
|
// 地域情報更新の場合
|
||||||
else if (earthquakeInfo.code === 555) {
|
else if (earthquakeInfo.code === 555) {
|
||||||
if (rateLimit === null) {
|
if (rateLimit === null) {
|
||||||
rateLimit = subMinutes(new Date(), 15);
|
rateLimit = subMinutes(new Date(), config.earthquake.rateLimit + 15);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 対象地域マッピング
|
// 対象地域マッピング
|
||||||
|
|||||||
@@ -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