Only report to mastodon Mondays

This commit is contained in:
idanoo 2023-02-12 14:20:17 +13:00
parent 003efe910e
commit 533cde2eaf
Signed by: idanoo
GPG key ID: 387387CDBC02F132
4 changed files with 74 additions and 29 deletions

View file

@ -22,7 +22,7 @@ func sendToMatrix(m []metric) {
startOfDay := getStartofDay()
sendMatrixWebhook(fmt.Sprintf("*User counts for %s*", startOfDay.String()), MATRIX_WEBHOOK_CHANNEL)
for _, m := range m {
sendMatrixWebhook(getPrintableString(m), MATRIX_WEBHOOK_CHANNEL)
sendMatrixWebhook(getPrintableString(m, false), MATRIX_WEBHOOK_CHANNEL)
}
}