diff options
author | Wim <wim@42.be> | 2016-11-06 00:46:32 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-06 00:46:32 +0100 |
commit | a3dd0f1345fae3d7828ed0c82d6a7c4b610d0983 (patch) | |
tree | 7db0a8d15e4390b9c2bb0581cad8d2e551a29b23 /bridge/discord | |
parent | 37873acfcd328e7c9eaf2e69148de05b8d00a428 (diff) | |
download | matterbridge-msglm-a3dd0f1345fae3d7828ed0c82d6a7c4b610d0983.tar.gz matterbridge-msglm-a3dd0f1345fae3d7828ed0c82d6a7c4b610d0983.tar.bz2 matterbridge-msglm-a3dd0f1345fae3d7828ed0c82d6a7c4b610d0983.zip |
Add support for using avatars from discord,slack and gitter in slack
Diffstat (limited to 'bridge/discord')
-rw-r--r-- | bridge/discord/discord.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 7995a06d..62bc85ce 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -127,7 +127,7 @@ func (b *bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat channelName = "ID:" + m.ChannelID } b.Remote <- config.Message{Username: m.Author.Username, Text: m.ContentWithMentionsReplaced(), Channel: channelName, - Origin: b.origin, Protocol: b.protocol, FullOrigin: b.FullOrigin()} + Origin: b.origin, Protocol: b.protocol, FullOrigin: b.FullOrigin(), Avatar: "https://cdn.discordapp.com/avatars/" + m.Author.ID + "/" + m.Author.Avatar + ".jpg"} } func (b *bdiscord) getChannelID(name string) string { |