Add slack webhook integration

This commit is contained in:
Daniel Mason 2021-09-01 23:20:47 +12:00
parent c109f08589
commit 1718cc052d
Signed by: idanoo
GPG key ID: 387387CDBC02F132
9 changed files with 107 additions and 5 deletions

View file

@ -8,10 +8,8 @@ import (
"github.com/DisgoOrg/disgohook/api"
)
var (
// Slice of discord webhooks
DiscordWebhooks []string
)
// Slice of discord webhooks
var DiscordWebhooks []string
func postToDiscord(webhookString string, msg string) {
tokenParts := strings.Split(webhookString, "/")