This commit is contained in:
2026-01-20 00:31:54 +01:00
parent fd92604589
commit 43e9b2b993
2 changed files with 22 additions and 15 deletions

View File

@@ -17,3 +17,9 @@ func (d DiscordSender) Send(msg string) {
}
http.Post(d.Config.DiscordWebhook, "application/json", bytes.NewBuffer(b))
}
func (d DiscordSender) SendBatch(msgs []string) {
for _, msg := range msgs {
d.Send(msg)
}
}