feat(discord-bot): remove REPORTS_JSON and implement embed migration
All checks were successful
Build and Deploy / typecheck (push) Successful in 29s
Build and Deploy / build (push) Successful in 25s
Build and Deploy / deploy (push) Successful in 4s

This commit is contained in:
2026-05-30 21:58:47 +02:00
parent 943d69472c
commit 82eb239f5e
4 changed files with 31 additions and 91 deletions

View File

@@ -4,13 +4,13 @@ import { env } from "~/env";
import { questCheckCron } from "~/quests";
import { trackingCron } from "~/tracking";
import { commands } from "~/commands";
import { handleReportButton, handleReportModal, handleEditButton, handleDeleteButton, handleEditModal, importReports, REPORT_BUTTON_ID, REPORT_MODAL_ID, REPORT_EDIT_BUTTON_PREFIX, REPORT_DELETE_BUTTON_PREFIX, REPORT_EDIT_MODAL_PREFIX } from "~/reporting";
import { handleReportButton, handleReportModal, handleEditButton, handleDeleteButton, handleEditModal, migrateReportEmbeds, REPORT_BUTTON_ID, REPORT_MODAL_ID, REPORT_EDIT_BUTTON_PREFIX, REPORT_DELETE_BUTTON_PREFIX, REPORT_EDIT_MODAL_PREFIX } from "~/reporting";
const onReady = async (client: Client<true>) => {
logger.info(`Client ready`);
logger.info(`Connected as @${client.user.username}`);
await importReports(client);
void migrateReportEmbeds(client);
await questCheckCron(client);
setInterval(() => void questCheckCron(client), env.WOV_FETCH_INTERVAL);