From 0e79bebdbbbcdf09f1e3836eb51e38170185749f Mon Sep 17 00:00:00 2001 From: Ben Thomas Date: Tue, 2 Jan 2024 19:11:45 -0800 Subject: [PATCH] debugging monthly report (#79) --- bot-scripts/message-history.js | 1 + index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bot-scripts/message-history.js b/bot-scripts/message-history.js index 2ecf7d5..852ea7d 100644 --- a/bot-scripts/message-history.js +++ b/bot-scripts/message-history.js @@ -63,6 +63,7 @@ function processMessageHistory(messagesArray) { return messageHistoryFormatted; } catch (error) { + console.error("Error processing message history"); console.error(error); return null; } diff --git a/index.js b/index.js index 28d9374..b9ae44f 100644 --- a/index.js +++ b/index.js @@ -104,7 +104,7 @@ client.once(Events.ClientReady, async () => { }); // schedule channel activity summary for the past month to run on first of every month - schedule.scheduleJob("2 0 2 * *", async () => { + schedule.scheduleJob("2 0 1 * *", async () => { try { const theFeedChannel = client.channels.cache.find(channel => channel.name.toLowerCase() === "the-feed"); const dateForHistory = new Date();