Move stuff

This commit is contained in:
Christopher Cookman 2024-10-28 22:32:48 -06:00
parent fb866169e8
commit 0da00e5efb

View file

@ -55,11 +55,7 @@ async function getPreviousDayData() {
recordForToday = res[1] recordForToday = res[1]
monthlyTotal = res[2] monthlyTotal = res[2]
totalCalls = res[3] totalCalls = res[3]
}); connection.end();
await connection.end();
console.log(callsMade)
console.log(recordForToday)
return { return {
"Calls Made": callsMade[0].call_count, "Calls Made": callsMade[0].call_count,
"Record for Today of the Year": recordForToday[0].call_count, "Record for Today of the Year": recordForToday[0].call_count,
@ -68,6 +64,7 @@ async function getPreviousDayData() {
"System Uptime": getSystemUptime(), "System Uptime": getSystemUptime(),
"All Time Record": null, // Placeholder "All Time Record": null, // Placeholder
}; };
});
} }
function getSystemUptime() { function getSystemUptime() {
@ -118,7 +115,7 @@ async function sendSummary() {
previousDayEnd.setHours(23, 59, 59, 999); previousDayEnd.setHours(23, 59, 59, 999);
let embed = { let embed = {
title: `Summary from <t:${Math.floor(previousDayStart/1000)}:f> to <t:${Math.floor(previousDayEnd/1000)}:f>`, title: `Summary from <t:${Math.floor(previousDayStart / 1000)}:f> to <t:${Math.floor(previousDayEnd / 1000)}:f>`,
color: 0x1E90FF, color: 0x1E90FF,
fields: [] fields: []