mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-02 11:42:15 +00:00
Add slack webhook integration
This commit is contained in:
parent
c109f08589
commit
1718cc052d
9 changed files with 107 additions and 5 deletions
|
@ -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, "/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue