more refact

This commit is contained in:
2026-01-19 21:55:50 +01:00
parent 64750ef1c2
commit ee6dfca55f
3 changed files with 44 additions and 30 deletions

View File

@@ -3,7 +3,6 @@ package lib
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
@@ -12,7 +11,6 @@ type DiscordSender struct {
}
func (d DiscordSender) Send(msg string) {
fmt.Printf("Send to Discord: %s\n", msg)
b, _ := json.Marshal(map[string]string{"content": msg})
http.Post(d.Config.Webhook, "application/json", bytes.NewBuffer(b))
}