fake discord feature
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user