feat: incorrect response webhook
This commit is contained in:
@@ -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
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user