diff --git a/index.js b/index.js index 5f938f4..71eb275 100644 --- a/index.js +++ b/index.js @@ -140,15 +140,15 @@ async function sendSummaryMatrix(yesterday, stats) { const html = ` -
+ -
-
-
-
-
- ${stats.isNewRecord ? `
` : ''} + + + + + + ${stats.isNewRecord ? `` : ''}
Summary from ${yesterday.startDate.toString()} to ${yesterday.endDate.toString()}
Summary from ${yesterday.startDate.toString()} to ${yesterday.endDate.toString()}
Calls Made${stats.totalCallsMade}
Monthly Total${stats.totalCallsThisMonth}
Total Calls Ever Placed${stats.totalCallsEverPlaced}
System Uptime${getSystemUptime().toString(false, false)}
All Time Record${stats.allTimeRecord}
🎉 NEW RECORD! 🎉 A new record has been set, at ${stats.totalCallsMade}!
Calls Made${stats.totalCallsMade}
Monthly Total${stats.totalCallsThisMonth}
Total Calls Ever Placed${stats.totalCallsEverPlaced}
System Uptime${getSystemUptime().toString(false, false)}
All Time Record${stats.allTimeRecord}
🎉 NEW RECORD! 🎉 A new record has been set, at ${stats.totalCallsMade} calls in a day!
`; @@ -161,7 +161,7 @@ Monthly Total: ${stats.totalCallsThisMonth} Total Calls Ever Placed: ${stats.totalCallsEverPlaced} System Uptime: ${getSystemUptime().toString(false, false)} All Time Record: ${stats.allTimeRecord} -${stats.isNewRecord ? `🎉 NEW RECORD! 🎉 A new record has been set, at ${stats.totalCallsMade}!` : ''}`, +${stats.isNewRecord ? `🎉 NEW RECORD! 🎉 A new record has been set, at ${stats.totalCallsMade} calls in a day!` : ''}`, "formatted_body": html.split('\n').map(s => s.trim()).join(''), "tel.litenet.call_stats_summary": { ...stats, date: yesterday @@ -193,7 +193,7 @@ async function sendSummaryDiscord(yesterday, stats) { if (stats.isNewRecord) { embed.color = 0xFFD700; // Gold color for new record - embed.fields.push(makeField("🎉 NEW RECORD! 🎉", `A new record has been set, at ${stats.totalCallsMade}!`)); + embed.fields.push(makeField("🎉 NEW RECORD! 🎉", `A new record has been set, at ${stats.totalCallsMade} calls in a day!`)); } const payload = { embeds: [ embed ] };