This commit is contained in:
Rory& 2025-09-20 20:06:09 +02:00
parent b8cc57b4fb
commit 25cf0254ec

View file

@ -123,7 +123,7 @@ async function sendSummary() {
await records.toJSONFile(JSON_FILE);
const yesterday = getYesterday();
const makeField = (name, value) => ({ name, value: value.toString(), inline: false });
const makeField = (name, value) => ({ name, value: value === undefined ? "***ERR: UNDEFINED***" : value.toString(), inline: false });
let embed = {
title: `Summary from <t:${Math.floor(yesterday.start / 1000)}:f> to <t:${Math.floor(yesterday.end / 1000)}:f>`,