// 起動チェック (await import("@/scripts/checks/main")).default(); (await import("@/scripts/successExit")).default(); // アスキーアート (await import("@/scripts/asciiart")).default(); // 地震情報観測開始 (await import("@/scripts/earthquakeNotice")).default(); // 定期実行 import * as cron from "node-cron"; /// 時報(1時間毎) cron.schedule("0 * * * *", async () => { (await import("@/scripts/timeNotice")).default(); }); // コマンド(10分毎) cron.schedule("*/10 * * * *", async () => { (await import("@/scripts/commands/main")).default(); }); // 祝日など(毎日0:00) cron.schedule("0 0 * * *", async () => { (await import("@/scripts/eventday")).default(); }); // 天気お知らせ(毎日7:00) cron.schedule("0 7 * * *", async () => { (await import("@/scripts/weatherNotice")).weatherNotice(); }); // 管理パネル await (await import("./panel/main")).default() // 起動表示 console.log("BOTサーバーが起動しました"); if ((await import("./config")).default.debug) { // TLSを任意に設定 process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; console.log((await import("node:util")).styleText( ["bgRed", "cyan", "bold"], "デバッグモードで起動中" )); }