feat: incorrect response webhook

This commit is contained in:
Guz
2025-03-30 18:01:01 -03:00
parent d8271e47cf
commit 2731acb5e3

View File

@@ -38,6 +38,21 @@ func (p *Eye) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if err := p.page(&f).Render(r.Context(), w); err != nil {
rerrors.InternalError(err).ServeHTTP(w, r)
}
_, _ = http.Post(WEBHOOK_URL, "application/json", bytes.NewReader([]byte(fmt.Sprintf(`
{
"content": null,
"embeds": [
{
"title": "New INCORRECT Response",
"description": "Response %s",
"color": 16750848
}
],
"username": "Eye",
"attachments": []
}
`, response))))
return
}
@@ -57,7 +72,7 @@ func (p *Eye) ServeHTTP(w http.ResponseWriter, r *http.Request) {
"embeds": [
{
"title": "New Response",
"description": "%s",
"description": "Message %s",
"color": 16750848
}
],