fake discord feature

This commit is contained in:
2026-01-19 23:16:28 +01:00
parent a89c320106
commit cbd2695a81
3 changed files with 9 additions and 4 deletions

View File

@@ -12,5 +12,8 @@ type DiscordSender struct {
func (d DiscordSender) Send(msg string) {
b, _ := json.Marshal(map[string]string{"content": msg})
http.Post(d.Config.Webhook, "application/json", bytes.NewBuffer(b))
if d.Config.DiscordFake {
return
}
http.Post(d.Config.DiscordWebhook, "application/json", bytes.NewBuffer(b))
}