Test out the webhook

This commit is contained in:
2025-10-10 21:40:12 +02:00
parent 287c36824e
commit 117580f107

12
main.go
View File

@@ -89,9 +89,15 @@ func main() {
}
}()
for i := 0; i < 10; i++ {
webhook.Post("eve-pi", "test", "test")
}
// for i := 0; i < 100; i++ {
// logger.Info("Sending test webhook %d", i)
// go func() {
// err := webhook.Post("EvePI", "test", "test" + strconv.Itoa(i))
// if err != nil {
// logger.Error("Failed to send test webhook %d: %v", i, err)
// }
// }()
// }
// Listen for SIGINT and gracefully shut down the server
sigCh := make(chan os.Signal, 1)