diff --git a/handlers/pages/eye.templ b/handlers/pages/eye.templ index cab845e..77ee3ff 100644 --- a/handlers/pages/eye.templ +++ b/handlers/pages/eye.templ @@ -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 } ],