mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-25 19:01:35 +00:00
Update webhook documentation (discord) (#1335)
This commit is contained in:
parent
03dc51ffa2
commit
6de4c7e971
@ -54,11 +54,6 @@ func (b *Bdiscord) Connect() error {
|
|||||||
var err error
|
var err error
|
||||||
token := b.GetString("Token")
|
token := b.GetString("Token")
|
||||||
b.Log.Info("Connecting")
|
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 ") {
|
if !strings.HasPrefix(b.GetString("Token"), "Bot ") {
|
||||||
token = "Bot " + b.GetString("Token")
|
token = "Bot " + b.GetString("Token")
|
||||||
}
|
}
|
||||||
|
@ -846,10 +846,11 @@ UseUserName=false
|
|||||||
# UseDiscriminator appends the `#xxxx` discriminator when used with UseUserName
|
# UseDiscriminator appends the `#xxxx` discriminator when used with UseUserName
|
||||||
UseDiscriminator=false
|
UseDiscriminator=false
|
||||||
|
|
||||||
# WebhookURL sends messages in the style of puppets.
|
# AutoWebhooks automatically configures message sending in the style of puppets.
|
||||||
# This only works if you have one discord channel, if you have multiple discord channels you'll have to specify it in the gateway config
|
# This is an easier alternative to manually configuring "WebhookURL" for each gateway,
|
||||||
# Example: "https://discordapp.com/api/webhooks/1234/abcd_xyzw"
|
# as turning this on will automatically load or create webhooks for each channel.
|
||||||
WebhookURL=""
|
# This feature requires the "Manage Webhooks" permission (either globally or as per-channel).
|
||||||
|
AutoWebhooks=false
|
||||||
|
|
||||||
# EditDisable disables sending of edits to other bridges
|
# EditDisable disables sending of edits to other bridges
|
||||||
EditDisable=false
|
EditDisable=false
|
||||||
@ -1435,7 +1436,7 @@ Server = "mumble.yourdomain.me:64738"
|
|||||||
# Nickname to log in as
|
# Nickname to log in as
|
||||||
Nick = "matterbridge"
|
Nick = "matterbridge"
|
||||||
|
|
||||||
# Some servers require a password
|
# Some servers require a password
|
||||||
# OPTIONAL (default empty)
|
# OPTIONAL (default empty)
|
||||||
Password = "serverpasswordhere"
|
Password = "serverpasswordhere"
|
||||||
|
|
||||||
@ -1863,13 +1864,16 @@ enable=true
|
|||||||
#OPTIONAL - your irc / xmpp channel key
|
#OPTIONAL - your irc / xmpp channel key
|
||||||
key="yourkey"
|
key="yourkey"
|
||||||
|
|
||||||
|
# Discord specific gateway options
|
||||||
[[gateway.inout]]
|
[[gateway.inout]]
|
||||||
account="discord.game"
|
account="discord.game"
|
||||||
channel="mygreatgame"
|
channel="mygreatgame"
|
||||||
|
|
||||||
#OPTIONAL - webhookurl only works for discord (it needs a different URL for each cahnnel)
|
|
||||||
[gateway.inout.options]
|
[gateway.inout.options]
|
||||||
webhookurl="https://discordapp.com/api/webhooks/123456789123456789/C9WPqExYWONPDZabcdef-def1434FGFjstasJX9pYht73y"
|
# WebhookURL sends messages in the style of "puppets". You must configure a webhook URL for each channel you want to bridge.
|
||||||
|
# If you have more than one channel and don't wnat to configure each channel manually, see the "AutoWebhooks" option in the gateway config.
|
||||||
|
# Example: "https://discord.com/api/webhooks/1234/abcd_xyzw"
|
||||||
|
WebhookURL=""
|
||||||
|
|
||||||
[[gateway.inout]]
|
[[gateway.inout]]
|
||||||
account="zulip.streamchat"
|
account="zulip.streamchat"
|
||||||
|
Loading…
Reference in New Issue
Block a user