mirror of
https://github.com/idanoo/go-mastodon-stats
synced 2025-07-02 22:32:19 +00:00
Add user count message
This commit is contained in:
parent
9bc4bc3466
commit
aec56e7352
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ package gomastodonstats
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
@ -19,7 +20,7 @@ func sendToMatrix(m []metric) {
|
||||||
}
|
}
|
||||||
|
|
||||||
startOfDay := getStartofDay()
|
startOfDay := getStartofDay()
|
||||||
sendMatrixWebhook(startOfDay.String(), MATRIX_WEBHOOK_CHANNEL)
|
sendMatrixWebhook(fmt.Sprintf("*User counts for %s*", startOfDay.String()), MATRIX_WEBHOOK_CHANNEL)
|
||||||
for _, m := range m {
|
for _, m := range m {
|
||||||
sendMatrixWebhook(getPrintableString(m), MATRIX_WEBHOOK_CHANNEL)
|
sendMatrixWebhook(getPrintableString(m), MATRIX_WEBHOOK_CHANNEL)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue