4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 08:39:24 +00:00

Update webhook documentation (discord) (#1335)

This commit is contained in:
Qais Patankar
2020-12-17 19:27:52 +00:00
committed by GitHub
parent 03dc51ffa2
commit 6de4c7e971
2 changed files with 11 additions and 12 deletions

View File

@ -54,11 +54,6 @@ func (b *Bdiscord) Connect() error {
var err error
token := b.GetString("Token")
b.Log.Info("Connecting")
if b.GetString("WebhookURL") == "" {
b.Log.Info("Connecting using token")
} else {
b.Log.Info("Connecting using webhookurl (for posting) and token")
}
if !strings.HasPrefix(b.GetString("Token"), "Bot ") {
token = "Bot " + b.GetString("Token")
}