matterbridge: Slack to Discord bridge stopped working
If you have a configuration problem, please first try to create a basic configuration following the instructions on the wiki before filing an issue.
Please answer the following questions.
Which version of matterbridge are you using?
run matterbridge -version
1.6.1
If you’re having problems with mattermost please specify mattermost version.
Please describe the expected behavior.
Bitbucket uses a slack webhook to post to our server Matterbridge reads the webhooks rich text and then forwards it to our Discord server.
Please describe the actual behavior.
Before updating from 1.3.x to 1.6.1 a week ago, all was good. However, I had to update because overnight the bridge goes off, then restarts in the morning when I turn on my PC. The bridge no longer synchs up the two comms.
Use logs from running matterbridge -debug
if possible.
Receiving message &discordgo.Message{ID:“000237712652075018”, ChannelID:“000710536182202368”, Content:“test”, Timestamp:“2018-01-01T04:00:51.016000+00:00”, EditedTimestamp:“”, MentionRoles:[]string{}, Tts:false, MentionEveryone:false, Author:(*discordgo.User)(0xc0421524d0), Attachments:[]*discordgo.MessageAttachment{}, Embeds:[]*discordgo.MessageEmbed{}, Mentions:[]*discordgo.User{}, Reactions:[]*discordgo.MessageReactions(nil), Type:0} [37mmodule[0m=discord [37mDEBU[0m[2017-12-31T23:00:52-05:00] Sending message from Varsic on discord.mydiscord to gateway [37mmodule[0m=discord [37mDEBU[0m[2017-12-31T23:00:52-05:00] Message is config.Message{Text:“test”, Channel:“”, Username:“Varsic”, UserID:“94135884735070208”, Avatar:“https://cdn.discordapp.com/avatars/94135884735070208/18ecdb278f073874d849332d501fcc02.jpg”, Account:“discord.mydiscord”, Event:“”, Protocol:“”, Gateway:“”, Timestamp:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, ID:“000237712652075018”, Extra:map[string][]interface {}(nil)} [37mmodule[0m=discord [37mDEBU[0m[2017-12-31T23:00:52-05:00] empty channel [37mDEBU[0m[2017-12-31T23:00:52-05:00] empty channel
This debug is of module:slack ALSO, I can only get it to show information when I post from Discord, nothing happens when I post from Slack (on a separate user than the webhook bot)
Any steps to reproduce the behavior?
Odds are it was some sort of new style in how the code reads everything, because the program runs and says its now relaying information, however I don’t see anything on discord after the webhook bot posts on slack.
Please add your configuration file
[discord] [discord.mydiscord] Token=“MzY1OTA0MDYxNTU0ORQ2MDQ0.DSszJg.N7b0LWbuttCB9T0erHl20urvo0k” Server=“106900412005603712” #Server=“Just Bare Games” WebhookURL=“https://discordapp.com/api/webhooks/360000587340259300/3ZsB2E-1f70QaQNpZ0XzkA7IE0-u8xIn130KKzUbdUvE0Dc0-SCebmbhpbqaBRFTXLJH”
[slack] [slack.myslack] #PrefixMessagesWithNick=true #oldToken=“xoxp-252780006917-252574956627-253000004322-db665f3281e348c7a00fbe7006a7963b” Token=“xoxb-252813810001-IuaEUjoh7rkk8LU2MgTX1q7v” WebhookURL=“https://hooks.slack.com/services/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” [general] RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
[[gateway]] name=“slackdiscordbridge” enable=true
[[gateway.inout]] account=“discord.mydiscord” channel=“theislandirc” #channelID=“000710536182202368”
[[gateway.inout]] account=“slack.myslack” channel=“theisland” #channelID=“A7FMP89RZ”
(be sure to exclude or anonymize private data (tokens/passwords))
I obfuscated them…in case new style/length of tokens are a thing…
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 23 (11 by maintainers)
@Varsic in your discord configuration you have
You have to put the name you see in the browser with the same upper/lowercase
It’s probably the one you got commented ?