Add support for sending stats to Matrix, split out some code into more generic classes. #1
2
index.js
2
index.js
|
@ -168,6 +168,8 @@ ${stats.isNewRecord ? `🎉 NEW RECORD! 🎉 A new record has been set, at ${sta
|
|||
}
|
||||
}
|
||||
console.log("Sending Matrix message:", JSON.stringify(message, null, 2));
|
||||
console.log("Plaintext:\n", message.body)
|
||||
console.log("HTML:\n", message.formatted_body)
|
||||
}
|
||||
|
||||
async function sendSummaryDiscord(yesterday, stats) {
|
||||
|
|
Loading…
Reference in a new issue