天気機能を最適化

This commit is contained in:
2025-06-30 12:24:03 +09:00
parent c4d2990118
commit c5bd22600a
4 changed files with 88 additions and 29 deletions
+5 -5
View File
@@ -5,17 +5,17 @@ import weatherNotice from "./scripts/weatherNotice.js";
import followBack from "./scripts/followBack.js";
weatherNotice();
// 時報・フォローバック(毎時)
cron.schedule("0 * * * *", () => {
timeNotice();
followBack();
});
// 天気お知らせ(毎日7:01)
cron.schedule("1 7 * * *", () => {
weatherNotice();
// 天気お知らせ(毎日7:00)
cron.schedule("0 7 * * *", () => {
setTimeout(() => {
weatherNotice();
}, 100)
});
console.log("サーバーが起動しました");