Closed seanvree closed 7 years ago
Hi, please run with -debug Let the bots talk and then copy & paste the debug output here.
@42wim - will do. I'll report back.
@42wim -
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd C:\matterbridge
C:\matterbridge>matterbridge64.exe -debug
[34mINFO[0m[2017-07-09T18:22:16-07:00] Enabling debug
[34mINFO[0m[2017-07-09T18:22:16-07:00] Running version 0.15.0 822605c
[34mINFO[0m[2017-07-09T18:22:16-07:00] Starting gateway: matterbridge
[34mINFO[0m[2017-07-09T18:22:16-07:00] Starting bridge: slack.seanvree
[34mINFO[0m[2017-07-09T18:22:16-07:00] Connecting [34mmodule[0m=slack
[34mINFO[0m[2017-07-09T18:22:16-07:00] Connection succeeded [34mmodule[0m=slack
[34mINFO[0m[2017-07-09T18:22:16-07:00] slack.seanvree: joining plex (plexslack.seanvree)
[37mDEBU[0m[2017-07-09T18:22:16-07:00] Choosing API based slack connection: true [37mmodule[0m=slack
[34mINFO[0m[2017-07-09T18:22:16-07:00] Starting bridge: mattermost.seanvree
[34mINFO[0m[2017-07-09T18:22:16-07:00] Connecting seanvreebot (team: mattermost) on seanvree.com:8065 [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-09T18:22:16-07:00] Found version 3.10.0.3.10.0.95579d78efa86dba577f1b87a16ebced.false [34mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] trying login mattermost seanvreebot seanvree.com:8065 [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] initUser(): found our team mattermost (id: w33kdw9krtn6xjuznsqxut9yxy) [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] WsClient: making connection: wss://seanvree.com:8065/api/v3/users/websocket [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] WsClient: connected [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-09T18:22:16-07:00] Connection succeeded [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-09T18:22:16-07:00] mattermost.seanvree: joining plex (plexmattermost.seanvree)
[37mDEBU[0m[2017-07-09T18:22:16-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] Choosing API based Mattermost connection: true [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-09T18:22:16-07:00] Not joining w9if6bim37yttgezkikgbwd9yo already joined. [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] WsReceiver: model.WebSocketEvent{Event:"hello", Data:map[string]interface {}{"server_version":"3.10.0.3.10.0.95579d78efa86dba577f1b87a16ebced.false"}, Broadcast:(*model.WebsocketBroadcast)(0xc04204a100), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-09T18:22:16-07:00] Gateway(s) started succesfully. Now relaying messages
[37mDEBU[0m[2017-07-09T18:22:16-07:00] sendWsRequest &model.WebSocketRequest{Seq:1, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] map[string]interface {}{"server_version":"3.10.0.3.10.0.95579d78efa86dba577f1b87a16ebced.false"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-09T18:22:16-07:00] WsReceiver: model.WebSocketResponse{Status:"OK", SeqReply:1, Data:map[string]interface {}{"node_id":"", "server_time":1.499649736989e+12, "text":"pong", "version":"3.10.0"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] WsReceiver: model.WebSocketEvent{Event:"status_change", Data:map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"}, Broadcast:(*model.WebsocketBroadcast)(0xc0421fc340), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:22:16-07:00] map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-09T18:22:17-07:00] Start listening for Slack messages [37mmodule[0m=slack
[37mDEBU[0m[2017-07-09T18:22:48-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"", Text:"", Timestamp:"1499649768.771939", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment{slack.Attachment{Color:"36a64f", Fallback:"This is a test message sent from the WebApp.", CallbackID:"", AuthorName:"", AuthorSubname:"", AuthorLink:"", AuthorIcon:"", Title:"", TitleLink:"", Pretext:"", Text:"This is a test message sent from the WebApp.", ImageURL:"", ThumbURL:"", Fields:[]slack.AttachmentField{slack.AttachmentField{Title:"Priority", Value:"Normal", Short:true}}, Actions:[]slack.AttachmentAction(nil), MarkdownIn:[]string(nil), Footer:"", FooterIcon:"", Ts:""}}, Edited:(*slack.Edited)(nil), SubType:"bot_message", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1499649768.771939", BotID:"B61847QE5", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-09T18:23:16-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:23:16-07:00] sendWsRequest &model.WebSocketRequest{Seq:2, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:23:16-07:00] WsReceiver: model.WebSocketResponse{Status:"OK", SeqReply:2, Data:map[string]interface {}{"version":"3.10.0", "node_id":"", "server_time":1.499649796993e+12, "text":"pong"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:23:16-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:23:22-07:00] WsReceiver: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"bw7pe4741f8higozs7pajxuome\",\"create_at\":1499649802451,\"update_at\":1499649802451,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"Test Notification\",\"type\":\"\",\"props\":{\"from_webhook\":\"true\",\"override_icon_url\":\"https://sabnzbd.org/images/icons/apple-touch-icon-76x76-precomposed.png\",\"override_username\":\"sabnzbd\"},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"sabnzbd", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX"}, Broadcast:(*model.WebsocketBroadcast)(0xc042192340), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-09T18:23:22-07:00] map[string]interface {}{"channel_type":"O", "post":"{\"id\":\"bw7pe4741f8higozs7pajxuome\",\"create_at\":1499649802451,\"update_at\":1499649802451,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"Test Notification\",\"type\":\"\",\"props\":{\"from_webhook\":\"true\",\"override_icon_url\":\"https://sabnzbd.org/images/icons/apple-touch-icon-76x76-precomposed.png\",\"override_username\":\"sabnzbd\"},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"sabnzbd", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-09T18:23:22-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc042192300), Post:(*model.Post)(0xc042000400), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"Test Notification", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-09T18:23:22-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-09T18:23:22-07:00] Sending config.Message{Text:"Test Notification", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635246602, nsec:461882700, loc:(*time.Location)(0xded4e0)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-09T18:23:22-07:00] Receiving config.Message{Text:"Test Notification", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{sec:63635246602, nsec:461882700, loc:(*time.Location)(0xded4e0)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-09T18:23:22-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U63P6V1JQ", Text:" Test Notification", Timestamp:"1499649802.776496", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1499649802.776496", BotID:"B6328FSSU", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
Ok, the problem is that the bots don't seem to have a username. I'll see if I can fix this be doing a lookup of the botid
Seemed easy enough, the fix is in master, could you build for master and retry ?
@42wim - still not working, the notification on the slack end is coming from "Pulseway" See screenshot at the bottom
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd c:\matterbridge
c:\matterbridge>git pull
Already up-to-date.
c:\matterbridge>matterbridge64.exe -debug
[34mINFO[0m[2017-07-10T15:31:25-07:00] Enabling debug
[34mINFO[0m[2017-07-10T15:31:25-07:00] Running version 0.15.0 822605c
[34mINFO[0m[2017-07-10T15:31:25-07:00] Starting gateway: matterbridge
[34mINFO[0m[2017-07-10T15:31:25-07:00] Starting bridge: slack.seanvree
[34mINFO[0m[2017-07-10T15:31:25-07:00] Connecting [34mmodule[0m=slack
[34mINFO[0m[2017-07-10T15:31:25-07:00] Connection succeeded [34mmodule[0m=slack
[34mINFO[0m[2017-07-10T15:31:25-07:00] slack.seanvree: joining plex (plexslack.seanvree)
[37mDEBU[0m[2017-07-10T15:31:25-07:00] Choosing API based slack connection: true [37mmodule[0m=slack
[34mINFO[0m[2017-07-10T15:31:26-07:00] Starting bridge: mattermost.seanvree
[34mINFO[0m[2017-07-10T15:31:26-07:00] Connecting seanvreebot (team: mattermost) on seanvree.com:8065 [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-10T15:31:26-07:00] Found version 3.10.0.3.10.0.95579d78efa86dba577f1b87a16ebced.false [34mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] trying login mattermost seanvreebot seanvree.com:8065 [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] initUser(): found our team mattermost (id: w33kdw9krtn6xjuznsqxut9yxy) [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] WsClient: making connection: wss://seanvree.com:8065/api/v3/users/websocket [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] WsClient: connected [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-10T15:31:26-07:00] Connection succeeded [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-10T15:31:26-07:00] mattermost.seanvree: joining plex (plexmattermost.seanvree)
[37mDEBU[0m[2017-07-10T15:31:26-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] Choosing API based Mattermost connection: true [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T15:31:26-07:00] Not joining w9if6bim37yttgezkikgbwd9yo already joined. [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-10T15:31:26-07:00] Gateway(s) started succesfully. Now relaying messages
[37mDEBU[0m[2017-07-10T15:31:26-07:00] sendWsRequest &model.WebSocketRequest{Seq:1, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] WsReceiver: model.WebSocketEvent{Event:"hello", Data:map[string]interface {}{"server_version":"3.10.0.3.10.0.95579d78efa86dba577f1b87a16ebced.false"}, Broadcast:(*model.WebsocketBroadcast)(0xc04221c240), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] map[string]interface {}{"server_version":"3.10.0.3.10.0.95579d78efa86dba577f1b87a16ebced.false"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T15:31:26-07:00] WsReceiver: model.WebSocketResponse{Status:"OK", SeqReply:1, Data:map[string]interface {}{"node_id":"", "server_time":1.499725886344e+12, "text":"pong", "version":"3.10.0"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] WsReceiver: model.WebSocketEvent{Event:"status_change", Data:map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"}, Broadcast:(*model.WebsocketBroadcast)(0xc04221c4c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:31:26-07:00] map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T15:31:27-07:00] Start listening for Slack messages [37mmodule[0m=slack
[37mDEBU[0m[2017-07-10T15:31:39-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"", Text:"", Timestamp:"1499725898.362244", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment{slack.Attachment{Color:"36a64f", Fallback:"This is a test message sent from the WebApp.", CallbackID:"", AuthorName:"", AuthorSubname:"", AuthorLink:"", AuthorIcon:"", Title:"", TitleLink:"", Pretext:"", Text:"This is a test message sent from the WebApp.", ImageURL:"", ThumbURL:"", Fields:[]slack.AttachmentField{slack.AttachmentField{Title:"Priority", Value:"Normal", Short:true}}, Actions:[]slack.AttachmentAction(nil), MarkdownIn:[]string(nil), Footer:"", FooterIcon:"", Ts:""}}, Edited:(*slack.Edited)(nil), SubType:"bot_message", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1499725898.362244", BotID:"B61847QE5", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-10T15:32:19-07:00] WsReceiver: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"}, Broadcast:(*model.WebsocketBroadcast)(0xc0421fb180), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:32:19-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T15:32:20-07:00] WsReceiver: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"w9y6fz5sj7gxb8sjrd9f986usr\",\"create_at\":1499725940516,\"update_at\":1499725940516,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1499725940082\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX"}, Broadcast:(*model.WebsocketBroadcast)(0xc04221c800), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:32:20-07:00] map[string]interface {}{"sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"w9y6fz5sj7gxb8sjrd9f986usr\",\"create_at\":1499725940516,\"update_at\":1499725940516,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1499725940082\"}"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T15:32:20-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc04221c7c0), Post:(*model.Post)(0xc042426400), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T15:32:20-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T15:32:20-07:00] Sending config.Message{Text:"test", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635322740, nsec:543138700, loc:(*time.Location)(0xded4e0)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-10T15:32:20-07:00] Receiving config.Message{Text:"test", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{sec:63635322740, nsec:543138700, loc:(*time.Location)(0xded4e0)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-10T15:32:20-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U63P6V1JQ", Text:" test", Timestamp:"1499725940.374743", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1499725940.374743", BotID:"B6328FSSU", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-10T15:32:26-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:32:26-07:00] sendWsRequest &model.WebSocketRequest{Seq:2, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:32:26-07:00] WsReceiver: model.WebSocketResponse{Status:"OK", SeqReply:2, Data:map[string]interface {}{"version":"3.10.0", "node_id":"", "server_time":1.499725946352e+12, "text":"pong"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T15:32:26-07:00] WS PONG received [37mmodule[0m=matterclient
Screenshot:
Screenshot:
master is 0.16.1-dev you are still running the old code 0.15.0
@42wim - sorry about that. Updated, still not working:
c:\matterbridge>matterbridge64 -version
version: 0.16.0 4bed073
c:\matterbridge>matterbridge64 -debug
[34mINFO[0m[2017-07-10T16:22:33-07:00] Enabling debug
[34mINFO[0m[2017-07-10T16:22:33-07:00] Running version 0.16.0 4bed073
[34mINFO[0m[2017-07-10T16:22:33-07:00] Starting gateway: matterbridge
[34mINFO[0m[2017-07-10T16:22:33-07:00] Starting bridge: slack.seanvree
[34mINFO[0m[2017-07-10T16:22:33-07:00] Connecting using token [34mmodule[0m=slack
[34mINFO[0m[2017-07-10T16:22:33-07:00] Connection succeeded [34mmodule[0m=slack
[34mINFO[0m[2017-07-10T16:22:33-07:00] slack.seanvree: joining plex (plexslack.seanvree)
[37mDEBU[0m[2017-07-10T16:22:33-07:00] Choosing token based receiving [37mmodule[0m=slack
[34mINFO[0m[2017-07-10T16:22:34-07:00] Starting bridge: mattermost.seanvree
[34mINFO[0m[2017-07-10T16:22:34-07:00] Connecting using token [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-10T16:22:34-07:00] Connecting seanvreebot (team: mattermost) on seanvree.com:8065 [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-10T16:22:34-07:00] Found version 3.10.0.3.10.0.95579d78efa86dba577f1b87a16ebced.false [34mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] trying login mattermost seanvreebot seanvree.com:8065 [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] initUser(): found our team mattermost (id: w33kdw9krtn6xjuznsqxut9yxy) [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] WsClient: making connection: wss://seanvree.com:8065/api/v3/users/websocket [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] WsClient: connected [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-10T16:22:34-07:00] Connection succeeded [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-10T16:22:34-07:00] mattermost.seanvree: joining plex (plexmattermost.seanvree)
[37mDEBU[0m[2017-07-10T16:22:34-07:00] StatusLoop:<nil> [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] Choosing login (api) based receiving [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T16:22:34-07:00] WsReceiver event: model.WebSocketEvent{Event:"hello", Data:map[string]interface {}{"server_version":"3.10.0.3.10.0.95579d78efa86dba577f1b87a16ebced.false"}, Broadcast:(*model.WebsocketBroadcast)(0xc042223e00), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] Not joining w9if6bim37yttgezkikgbwd9yo already joined. [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] map[string]interface {}{"server_version":"3.10.0.3.10.0.95579d78efa86dba577f1b87a16ebced.false"} [37mmodule[0m=mattermost
[34mINFO[0m[2017-07-10T16:22:34-07:00] Gateway(s) started succesfully. Now relaying messages
[37mDEBU[0m[2017-07-10T16:22:34-07:00] sendWsRequest &model.WebSocketRequest{Seq:1, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] WsReceiver event: model.WebSocketEvent{Event:"status_change", Data:map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"}, Broadcast:(*model.WebsocketBroadcast)(0xc04203c400), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T16:22:34-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:1, Data:map[string]interface {}{"text":"pong", "version":"3.10.0", "node_id":"", "server_time":1.499728954452e+12}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:34-07:00] Start listening for Slack messages [37mmodule[0m=slack
[37mDEBU[0m[2017-07-10T16:22:42-07:00] WsReceiver event: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423cac80), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:42-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T16:22:43-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"post":"{\"id\":\"txoo3f59bffdix8inxtg93rfaa\",\"create_at\":1499728963363,\"update_at\":1499728963363,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1499728962912\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O"}, Broadcast:(*model.WebsocketBroadcast)(0xc0424ec040), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-10T16:22:43-07:00] map[string]interface {}{"post":"{\"id\":\"txoo3f59bffdix8inxtg93rfaa\",\"create_at\":1499728963363,\"update_at\":1499728963363,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1499728962912\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T16:22:43-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc0424ec000), Post:(*model.Post)(0xc042138700), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T16:22:43-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-10T16:22:43-07:00] Sending config.Message{Text:"test", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{wall:0xbe5120f0d629c654, ext:9620923900, loc:(*time.Location)(0x1345f60)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-10T16:22:43-07:00] Receiving config.Message{Text:"test", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{wall:0xbe5120f0d629c654, ext:9620923900, loc:(*time.Location)(0x1345f60)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-10T16:22:43-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U63P6V1JQ", Text:" test", Timestamp:"1499728963.226929", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1499728963.226929", BotID:"B6328FSSU", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
@42wim
Any idea on this?
You're still using the wrong binary.
Please following the instructions on https://github.com/42wim/matterbridge#building to build the correct binary for your system.
If this doesn't work, you'll have to wait on a new release.
@42wim - not to push, but any approximate time for the next release? Days, Weeks?
Release mostly happen when a crash/security issue is reported and fixed. Or enough new features/bugfixes have been piling up.
Compiling your own binary is simple enough, see https://github.com/42wim/matterbridge/issues/202#issuecomment-310867740
But for now you can also use v0.16.1 which has just been released. For future issues, try compiling yourself.
@42wim Still not working for me buddy. Not sure what I'm doing wrong. You'll see the other BOT that's it's not passing to MM is Called "pulseway"
Logs:
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd c:\matterbridge
c:\matterbridge>matterbridge64 -version
version: 0.16.1 e99532f
c:\matterbridge>matterbridge64 -debug
[34mINFO[0m[2017-07-15T17:32:06-07:00] Enabling debug
[34mINFO[0m[2017-07-15T17:32:06-07:00] Running version 0.16.1 e99532f
[34mINFO[0m[2017-07-15T17:32:06-07:00] Starting gateway: matterbridge
[34mINFO[0m[2017-07-15T17:32:06-07:00] Starting bridge: slack.seanvree
[34mINFO[0m[2017-07-15T17:32:06-07:00] Connecting using token (sending and receiving) [34mmodule[0m=slack
[34mINFO[0m[2017-07-15T17:32:06-07:00] slack.seanvree: joining plex (plexslack.seanvree)
[37mDEBU[0m[2017-07-15T17:32:06-07:00] Choosing token based receiving [37mmodule[0m=slack
[34mINFO[0m[2017-07-15T17:32:06-07:00] Starting bridge: mattermost.seanvree
[34mINFO[0m[2017-07-15T17:32:06-07:00] Connecting using login/password (sending and receiving) [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-15T17:32:06-07:00] Connecting seanvreebot (team: mattermost) on seanvree.com:8065 [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-15T17:32:06-07:00] Found version 3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false [34mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:06-07:00] trying login mattermost seanvreebot seanvree.com:8065 [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] initUser(): found our team mattermost (id: w33kdw9krtn6xjuznsqxut9yxy) [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] WsClient: making connection: wss://seanvree.com:8065/api/v3/users/websocket [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] WsClient: connected [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-15T17:32:07-07:00] Connection succeeded [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-15T17:32:07-07:00] mattermost.seanvree: joining plex (plexmattermost.seanvree)
[37mDEBU[0m[2017-07-15T17:32:07-07:00] Not joining w9if6bim37yttgezkikgbwd9yo already joined. [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] StatusLoop:<nil> [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] sendWsRequest &model.WebSocketRequest{Seq:1, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] Choosing login/password based receiving [37mmodule[0m=mattermost
[34mINFO[0m[2017-07-15T17:32:07-07:00] Gateway(s) started succesfully. Now relaying messages
[37mDEBU[0m[2017-07-15T17:32:07-07:00] WsReceiver event: model.WebSocketEvent{Event:"hello", Data:map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"}, Broadcast:(*model.WebsocketBroadcast)(0xc0422233c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-15T17:32:07-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:1, Data:map[string]interface {}{"node_id":"", "server_time":1.500165127109e+12, "text":"pong", "version":"3.10.0"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] WsReceiver event: model.WebSocketEvent{Event:"status_change", Data:map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423f6f80), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:07-07:00] map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-15T17:32:07-07:00] Start listening for Slack messages [37mmodule[0m=slack
[37mDEBU[0m[2017-07-15T17:32:18-07:00] WsReceiver event: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423fc180), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:18-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-15T17:32:19-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"qyreai7yainzpxhdcjncpgyqwr\",\"create_at\":1500165139927,\"update_at\":1500165139927,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500165139922\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423f7440), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:19-07:00] map[string]interface {}{"channel_type":"O", "post":"{\"id\":\"qyreai7yainzpxhdcjncpgyqwr\",\"create_at\":1500165139927,\"update_at\":1500165139927,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500165139922\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-15T17:32:19-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc0423f7400), Post:(*model.Post)(0xc04241c500), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-15T17:32:19-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-15T17:32:19-07:00] Sending config.Message{Text:"test", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{wall:0xbe52cae4f7faaf14, ext:13275435000, loc:(*time.Location)(0x1347f60)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-15T17:32:19-07:00] Receiving config.Message{Text:"test", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{wall:0xbe52cae4f7faaf14, ext:13275435000, loc:(*time.Location)(0x1347f60)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-15T17:32:20-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U63P6V1JQ", Text:" test", Timestamp:"1500165140.859722", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500165140.859722", BotID:"B6328FSSU", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-15T17:32:24-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U61L2PQ3E", Text:"test from slack", Timestamp:"1500165144.859962", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"", BotID:"", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-15T17:32:24-07:00] Sending message from seanvree on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-15T17:32:24-07:00] Sending config.Message{Text:"test from slack", Channel:"plex", Username:"seanvree", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{wall:0xbe52cae615cedd48, ext:17702080300, loc:(*time.Location)(0x1347f60)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-15T17:32:24-07:00] Receiving config.Message{Text:"test from slack", Channel:"plex", Username:"", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{wall:0xbe52cae615cedd48, ext:17702080300, loc:(*time.Location)(0x1347f60)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-15T17:32:24-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"9biotwcpzpr598mjmcay343qsh\",\"create_at\":1500165144373,\"update_at\":1500165144373,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423f7580), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:32:24-07:00] map[string]interface {}{"channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"9biotwcpzpr598mjmcay343qsh\",\"create_at\":1500165144373,\"update_at\":1500165144373,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-15T17:33:03-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"", Text:"", Timestamp:"1500165183.861915", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment{slack.Attachment{Color:"36a64f", Fallback:"This is a test message sent from the WebApp.", CallbackID:"", AuthorName:"", AuthorSubname:"", AuthorLink:"", AuthorIcon:"", Title:"", TitleLink:"", Pretext:"", Text:"This is a test message sent from the WebApp.", ImageURL:"", ThumbURL:"", Fields:[]slack.AttachmentField{slack.AttachmentField{Title:"Priority", Value:"Normal", Short:true}}, Actions:[]slack.AttachmentAction(nil), MarkdownIn:[]string(nil), Footer:"", FooterIcon:"", Ts:""}}, Edited:(*slack.Edited)(nil), SubType:"bot_message", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500165183.861915", BotID:"B61847QE5", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-15T17:33:07-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:33:07-07:00] sendWsRequest &model.WebSocketRequest{Seq:2, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:33:07-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:2, Data:map[string]interface {}{"server_time":1.500165187114e+12, "text":"pong", "version":"3.10.0", "node_id":""}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-15T17:33:07-07:00] WS PONG received [37mmodule[0m=matterclient
That's why I asked you to test it, before I released it ;-) I've made another update which should fix it.
You can build it following the instructions on my previous comment or wait until release v0.16.2
@42wim - didn't YOU test it before YOU released it?!
I don't build in GO, I'm a VS guy.
No I can't possibly test every feature on every bridge. I'm relying on the users that request the feature to also test it.
Gotcha.
Thanks for the work.
@42wim - built and tested the NEW NEW version 0.16.2-dev, still NO GO
ALso, when I built using GO, it compiled matterbridge.exe, however, master release is matterbridge64.exe .... is that something to worry about?
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd c:\matterbridge
c:\matterbridge>matterbridge --version
version: 0.16.2-dev
c:\matterbridge>matterbridge -debug
[34mINFO[0m[2017-07-16T08:40:17-07:00] Enabling debug
[34mINFO[0m[2017-07-16T08:40:17-07:00] Running version 0.16.2-dev
[34mINFO[0m[2017-07-16T08:40:17-07:00] WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[34mINFO[0m[2017-07-16T08:40:17-07:00] Starting gateway: matterbridge
[34mINFO[0m[2017-07-16T08:40:17-07:00] Starting bridge: slack.seanvree
[34mINFO[0m[2017-07-16T08:40:17-07:00] Connecting using token (sending and receiving) [34mmodule[0m=slack
[34mINFO[0m[2017-07-16T08:40:17-07:00] slack.seanvree: joining plex (plexslack.seanvree)
[37mDEBU[0m[2017-07-16T08:40:17-07:00] Choosing token based receiving [37mmodule[0m=slack
[34mINFO[0m[2017-07-16T08:40:17-07:00] Starting bridge: mattermost.seanvree
[34mINFO[0m[2017-07-16T08:40:17-07:00] Connecting using login/password (sending and receiving) [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T08:40:17-07:00] Connecting seanvreebot (team: mattermost) on seanvree.com:8065 [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T08:40:17-07:00] Found version 3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false [34mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] trying login mattermost seanvreebot seanvree.com:8065 [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] initUser(): found our team mattermost (id: w33kdw9krtn6xjuznsqxut9yxy) [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] WsClient: making connection: wss://seanvree.com:8065/api/v3/users/websocket [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] WsClient: connected [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-16T08:40:17-07:00] Connection succeeded [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T08:40:17-07:00] mattermost.seanvree: joining plex (plexmattermost.seanvree)
[37mDEBU[0m[2017-07-16T08:40:17-07:00] WsReceiver event: model.WebSocketEvent{Event:"hello", Data:map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"}, Broadcast:(*model.WebsocketBroadcast)(0xc0425921c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] StatusLoop:<nil> [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] Choosing login/password based receiving [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:17-07:00] Not joining w9if6bim37yttgezkikgbwd9yo already joined. [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"} [37mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T08:40:17-07:00] Gateway(s) started succesfully. Now relaying messages
[37mDEBU[0m[2017-07-16T08:40:17-07:00] sendWsRequest &model.WebSocketRequest{Seq:1, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:1, Data:map[string]interface {}{"node_id":"", "server_time":1.500219617882e+12, "text":"pong", "version":"3.10.0"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] WsReceiver event: model.WebSocketEvent{Event:"status_change", Data:map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"}, Broadcast:(*model.WebsocketBroadcast)(0xc0425922c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:17-07:00] map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:18-07:00] my bot ID is "B6328FSSU" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:18-07:00] my bot ID is "B64DMPPPG" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:18-07:00] Start listening for Slack messages [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:40-07:00] WsReceiver event: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"}, Broadcast:(*model.WebsocketBroadcast)(0xc04200a480), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:40-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:44-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"ws93anh4rbn59bzayn5xhgg7de\",\"create_at\":1500219644008,\"update_at\":1500219644008,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500219644002\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"}, Broadcast:(*model.WebsocketBroadcast)(0xc04200a5c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:44-07:00] map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"ws93anh4rbn59bzayn5xhgg7de\",\"create_at\":1500219644008,\"update_at\":1500219644008,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500219644002\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:44-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc04200a580), Post:(*model.Post)(0xc0423ac800), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test from MM", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:44-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:44-07:00] Sending config.Message{Text:"test from MM", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635816444, nsec:40398700, loc:(*time.Location)(0x136df20)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-16T08:40:44-07:00] Receiving config.Message{Text:"test from MM", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{sec:63635816444, nsec:40398700, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:44-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U63P6V1JQ", Text:" test from MM", Timestamp:"1500219643.908138", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500219643.908138", BotID:"B6328FSSU", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:44-07:00] Sending message from Slack API Tester on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:44-07:00] Sending config.Message{Text:" test from MM", Channel:"plex", Username:"Slack API Tester", UserID:"B6328FSSU", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635816444, nsec:286719200, loc:(*time.Location)(0x136df20)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-16T08:40:44-07:00] Receiving config.Message{Text:" test from MM", Channel:"plex", Username:"", UserID:"B6328FSSU", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{sec:63635816444, nsec:286719200, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:44-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_type":"O", "post":"{\"id\":\"ykq69ro6birbxkbi61oqww37bc\",\"create_at\":1500219644302,\"update_at\":1500219644302,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\" test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex"}, Broadcast:(*model.WebsocketBroadcast)(0xc04236f140), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:44-07:00] map[string]interface {}{"sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"ykq69ro6birbxkbi61oqww37bc\",\"create_at\":1500219644302,\"update_at\":1500219644302,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\" test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:50-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U61L2PQ3E", Text:"test from slack", Timestamp:"1500219649.908573", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"", BotID:"", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:50-07:00] Sending message from seanvree on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:50-07:00] Sending config.Message{Text:"test from slack", Channel:"plex", Username:"seanvree", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635816450, nsec:269073600, loc:(*time.Location)(0x136df20)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-16T08:40:50-07:00] Receiving config.Message{Text:"test from slack", Channel:"plex", Username:"", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{sec:63635816450, nsec:269073600, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:50-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_type":"O", "post":"{\"id\":\"jjxb4ybzujbs3kyhjzrd65i37y\",\"create_at\":1500219650278,\"update_at\":1500219650278,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex"}, Broadcast:(*model.WebsocketBroadcast)(0xc04236f480), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:40:50-07:00] map[string]interface {}{"post":"{\"id\":\"jjxb4ybzujbs3kyhjzrd65i37y\",\"create_at\":1500219650278,\"update_at\":1500219650278,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T08:40:55-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"", Text:"", Timestamp:"1500219654.908931", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment{slack.Attachment{Color:"36a64f", Fallback:"This is a test message sent from the WebApp.", CallbackID:"", AuthorName:"", AuthorSubname:"", AuthorLink:"", AuthorIcon:"", Title:"", TitleLink:"", Pretext:"", Text:"This is a test message sent from the WebApp.", ImageURL:"", ThumbURL:"", Fields:[]slack.AttachmentField{slack.AttachmentField{Title:"Priority", Value:"Normal", Short:true}}, Actions:[]slack.AttachmentAction(nil), MarkdownIn:[]string(nil), Footer:"", FooterIcon:"", Ts:""}}, Edited:(*slack.Edited)(nil), SubType:"bot_message", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500219654.908931", BotID:"B61847QE5", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:55-07:00] Sending message from Pulseway on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T08:40:55-07:00] ignoring empty message &config.Message{Text:"", Channel:"plex", Username:"Pulseway", UserID:"B61847QE5", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"", Timestamp:time.Time{sec:0, nsec:0, loc:(*time.Location)(nil)}} from slack.seanvree
[37mDEBU[0m[2017-07-16T08:41:17-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:41:17-07:00] sendWsRequest &model.WebSocketRequest{Seq:2, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:41:17-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:2, Data:map[string]interface {}{"version":"3.10.0", "node_id":"", "server_time":1.500219677888e+12, "text":"pong"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T08:41:17-07:00] WS PONG received [37mmodule[0m=matterclient
No there's progress, it now sees the bot. It's just that it thinks the messages are empty. Because it's using a slack attachment and not a real message.
�[37mDEBU�[0m[2017-07-16T08:40:55-07:00] ignoring empty message &config.Message{Text:"", Channel:"plex", Username:"Pulseway", UserID:"B61847QE5", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"", Timestamp:time.Time{sec:0, nsec:0, loc:(*time.Location)(nil)}} from slack.seanvree```
But the weird thing is that it detects 2 times a bot id, this is needed to prevent loops. (I'll come back to this later)
Please update from master and rebuild again. I've added support for the fallback/text in slack attachments.
@42wim Nope. NOw it's duplicating messages sent from myself on the MM side:
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd c:\matterbridge
c:\matterbridge>matterbridge --version
version: 0.16.2-dev
c:\matterbridge>matterbridge --debug
[34mINFO[0m[2017-07-16T09:18:51-07:00] Enabling debug
[34mINFO[0m[2017-07-16T09:18:51-07:00] Running version 0.16.2-dev
[34mINFO[0m[2017-07-16T09:18:51-07:00] WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[34mINFO[0m[2017-07-16T09:18:51-07:00] Starting gateway: matterbridge
[34mINFO[0m[2017-07-16T09:18:51-07:00] Starting bridge: slack.seanvree
[34mINFO[0m[2017-07-16T09:18:51-07:00] Connecting using token (sending and receiving) [34mmodule[0m=slack
[34mINFO[0m[2017-07-16T09:18:51-07:00] slack.seanvree: joining plex (plexslack.seanvree)
[37mDEBU[0m[2017-07-16T09:18:51-07:00] Choosing token based receiving [37mmodule[0m=slack
[34mINFO[0m[2017-07-16T09:18:52-07:00] Starting bridge: mattermost.seanvree
[34mINFO[0m[2017-07-16T09:18:52-07:00] Connecting using login/password (sending and receiving) [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T09:18:52-07:00] Connecting seanvreebot (team: mattermost) on seanvree.com:8065 [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T09:18:52-07:00] Found version 3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false [34mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] trying login mattermost seanvreebot seanvree.com:8065 [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] initUser(): found our team mattermost (id: w33kdw9krtn6xjuznsqxut9yxy) [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] WsClient: making connection: wss://seanvree.com:8065/api/v3/users/websocket [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] WsClient: connected [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-16T09:18:52-07:00] Connection succeeded [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T09:18:52-07:00] mattermost.seanvree: joining plex (plexmattermost.seanvree)
[37mDEBU[0m[2017-07-16T09:18:52-07:00] StatusLoop:<nil> [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] WsReceiver event: model.WebSocketEvent{Event:"hello", Data:map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"}, Broadcast:(*model.WebsocketBroadcast)(0xc042371580), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] Not joining w9if6bim37yttgezkikgbwd9yo already joined. [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] Choosing login/password based receiving [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:18:52-07:00] sendWsRequest &model.WebSocketRequest{Seq:1, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-16T09:18:52-07:00] Gateway(s) started succesfully. Now relaying messages
[37mDEBU[0m[2017-07-16T09:18:52-07:00] WsReceiver event: model.WebSocketEvent{Event:"status_change", Data:map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423716c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:18:52-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:1, Data:map[string]interface {}{"node_id":"", "server_time":1.500221932176e+12, "text":"pong", "version":"3.10.0"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:18:52-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:52-07:00] my bot ID is "B6328FSSU" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:18:52-07:00] my bot ID is "B64DMPPPG" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:18:52-07:00] Start listening for Slack messages [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:18:55-07:00] WsReceiver event: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"}, Broadcast:(*model.WebsocketBroadcast)(0xc0421fdd00), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:55-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:18:59-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"jfegcgn6hfdyppeb7kjunge6zw\",\"create_at\":1500221939569,\"update_at\":1500221939569,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from mm\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500221933874\"}"}, Broadcast:(*model.WebsocketBroadcast)(0xc042597100), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:18:59-07:00] map[string]interface {}{"post":"{\"id\":\"jfegcgn6hfdyppeb7kjunge6zw\",\"create_at\":1500221939569,\"update_at\":1500221939569,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from mm\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500221933874\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:18:59-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc0425970c0), Post:(*model.Post)(0xc042486500), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test from mm", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:18:59-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:18:59-07:00] Sending config.Message{Text:"test from mm", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635818739, nsec:588675600, loc:(*time.Location)(0x136df20)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-16T09:18:59-07:00] Receiving config.Message{Text:"test from mm", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{sec:63635818739, nsec:588675600, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:19:26-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U61L2PQ3E", Text:"test from slack", Timestamp:"1500221966.097215", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"", BotID:"", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:19:26-07:00] Sending message from seanvree on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:19:26-07:00] Sending config.Message{Text:"test from slack", Channel:"plex", Username:"seanvree", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635818766, nsec:445541600, loc:(*time.Location)(0x136df20)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-16T09:19:26-07:00] Receiving config.Message{Text:"test from slack", Channel:"plex", Username:"", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{sec:63635818766, nsec:445541600, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:19:26-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_type":"O", "post":"{\"id\":\"8nrd7stbyfn6feh698ni73d31c\",\"create_at\":1500221966453,\"update_at\":1500221966453,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex"}, Broadcast:(*model.WebsocketBroadcast)(0xc0421fdec0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:19:26-07:00] map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"8nrd7stbyfn6feh698ni73d31c\",\"create_at\":1500221966453,\"update_at\":1500221966453,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:19:31-07:00] WsReceiver event: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"user_id":"f58f9n9d9tgcmd1kercnxrp3jw", "parent_id":""}, Broadcast:(*model.WebsocketBroadcast)(0xc04200a4c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:19:31-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:19:32-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"xo4i3xmzm3d7ij79bj98smqmbw\",\"create_at\":1500221972755,\"update_at\":1500221972755,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from mm\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500221967062\"}"}, Broadcast:(*model.WebsocketBroadcast)(0xc04200a580), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:19:32-07:00] map[string]interface {}{"channel_type":"O", "post":"{\"id\":\"xo4i3xmzm3d7ij79bj98smqmbw\",\"create_at\":1500221972755,\"update_at\":1500221972755,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from mm\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500221967062\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:19:32-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc04200a540), Post:(*model.Post)(0xc042000c00), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test from mm", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:19:32-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:19:32-07:00] Sending config.Message{Text:"test from mm", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635818772, nsec:768490800, loc:(*time.Location)(0x136df20)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-16T09:19:32-07:00] Receiving config.Message{Text:"test from mm", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{sec:63635818772, nsec:768490800, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:19:32-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U63P6V1JQ", Text:" test from mm", Timestamp:"1500221972.097753", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500221972.097753", BotID:"B6328FSSU", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:19:33-07:00] Sending message from Slack API Tester on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:19:33-07:00] Sending config.Message{Text:" test from mm", Channel:"plex", Username:"Slack API Tester", UserID:"B6328FSSU", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635818773, nsec:162017400, loc:(*time.Location)(0x136df20)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-16T09:19:33-07:00] Receiving config.Message{Text:" test from mm", Channel:"plex", Username:"", UserID:"B6328FSSU", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{sec:63635818773, nsec:162017400, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:19:33-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_type":"O", "post":"{\"id\":\"mgx4y1wk5trz9enjhqyf1oce1y\",\"create_at\":1500221973169,\"update_at\":1500221973169,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\" test from mm\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex"}, Broadcast:(*model.WebsocketBroadcast)(0xc04204af00), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:19:33-07:00] map[string]interface {}{"channel_type":"O", "post":"{\"id\":\"mgx4y1wk5trz9enjhqyf1oce1y\",\"create_at\":1500221973169,\"update_at\":1500221973169,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\" test from mm\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:19:52-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:19:52-07:00] sendWsRequest &model.WebSocketRequest{Seq:2, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:19:52-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:2, Data:map[string]interface {}{"text":"pong", "version":"3.10.0", "node_id":"", "server_time":1.500221992183e+12}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:19:52-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:20:44-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"", Text:"", Timestamp:"1500222044.104108", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment{slack.Attachment{Color:"36a64f", Fallback:"This is a test message sent from the WebApp.", CallbackID:"", AuthorName:"", AuthorSubname:"", AuthorLink:"", AuthorIcon:"", Title:"", TitleLink:"", Pretext:"", Text:"This is a test message sent from the WebApp.", ImageURL:"", ThumbURL:"", Fields:[]slack.AttachmentField{slack.AttachmentField{Title:"Priority", Value:"Normal", Short:true}}, Actions:[]slack.AttachmentAction(nil), MarkdownIn:[]string(nil), Footer:"", FooterIcon:"", Ts:""}}, Edited:(*slack.Edited)(nil), SubType:"bot_message", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500222044.104108", BotID:"B61847QE5", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:20:44-07:00] Sending message from Pulseway on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:20:44-07:00] ignoring empty message &config.Message{Text:"", Channel:"plex", Username:"Pulseway", UserID:"B61847QE5", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"", Timestamp:time.Time{sec:0, nsec:0, loc:(*time.Location)(nil)}} from slack.seanvree
Yes, the duplication is because you're running multiple bots and it doesn't know which bot send what. It tries to detect it self, but you have 2 bots with the same name. (lets keep this for another issue for now)
Could you modify your code locally so that https://github.com/42wim/matterbridge/blob/master/bridge/slack/slack.go#L265-L266
becomes
if m.Text == "" {
flog.Debugf("attachments: %#v\n", ev.Attachments)
for _, attach := range ev.Attachments {
This should add an "attachments" line when running debug, so that we hopefully can see what's wrong.
@42wim
Okay, so lines 265 - 274 look like this:
if m.Text == "" {
flog.Debugf("attachments: %#v\n", ev.Attachments)
for _, attach := range ev.Attachments {
if attach.Text != "" {
m.Text = attach.Text
} else {
m.Text = attach.Fallback
}
}
}
Output:
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd c:\matterbridge
c:\matterbridge>matterbridge --debug
[34mINFO[0m[2017-07-16T09:50:16-07:00] Enabling debug
[34mINFO[0m[2017-07-16T09:50:16-07:00] Running version 0.16.2-dev
[34mINFO[0m[2017-07-16T09:50:16-07:00] WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[34mINFO[0m[2017-07-16T09:50:16-07:00] Starting gateway: matterbridge
[34mINFO[0m[2017-07-16T09:50:16-07:00] Starting bridge: slack.seanvree
[34mINFO[0m[2017-07-16T09:50:16-07:00] Connecting using token (sending and receiving) [34mmodule[0m=slack
[34mINFO[0m[2017-07-16T09:50:16-07:00] slack.seanvree: joining plex (plexslack.seanvree)
[37mDEBU[0m[2017-07-16T09:50:16-07:00] Choosing token based receiving [37mmodule[0m=slack
[34mINFO[0m[2017-07-16T09:50:17-07:00] Starting bridge: mattermost.seanvree
[34mINFO[0m[2017-07-16T09:50:17-07:00] Connecting using login/password (sending and receiving) [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T09:50:17-07:00] Connecting seanvreebot (team: mattermost) on seanvree.com:8065 [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T09:50:17-07:00] Found version 3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false [34mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] trying login mattermost seanvreebot seanvree.com:8065 [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] initUser(): found our team mattermost (id: w33kdw9krtn6xjuznsqxut9yxy) [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] WsClient: making connection: wss://seanvree.com:8065/api/v3/users/websocket [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] WsClient: connected [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-16T09:50:17-07:00] Connection succeeded [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T09:50:17-07:00] mattermost.seanvree: joining plex (plexmattermost.seanvree)
[37mDEBU[0m[2017-07-16T09:50:17-07:00] Not joining w9if6bim37yttgezkikgbwd9yo already joined. [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-16T09:50:17-07:00] Gateway(s) started succesfully. Now relaying messages
[37mDEBU[0m[2017-07-16T09:50:17-07:00] StatusLoop:<nil> [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] WsReceiver event: model.WebSocketEvent{Event:"hello", Data:map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"}, Broadcast:(*model.WebsocketBroadcast)(0xc042560280), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] Choosing login/password based receiving [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:50:17-07:00] map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:50:17-07:00] sendWsRequest &model.WebSocketRequest{Seq:1, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:1, Data:map[string]interface {}{"server_time":1.500223817384e+12, "text":"pong", "version":"3.10.0", "node_id":""}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] WsReceiver event: model.WebSocketEvent{Event:"status_change", Data:map[string]interface {}{"user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we", "status":"online"}, Broadcast:(*model.WebsocketBroadcast)(0xc0425a00c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:17-07:00] map[string]interface {}{"user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we", "status":"online"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:50:17-07:00] my bot ID is "B6328FSSU" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:50:17-07:00] my bot ID is "B64DMPPPG" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:50:17-07:00] Start listening for Slack messages [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:50:27-07:00] WsReceiver event: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423ba140), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:27-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:50:29-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"5x5gn9obdbgqxn31in4ngihn3y\",\"create_at\":1500223829200,\"update_at\":1500223829200,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from mm\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500223823463\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"}, Broadcast:(*model.WebsocketBroadcast)(0xc04236e540), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:29-07:00] map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"5x5gn9obdbgqxn31in4ngihn3y\",\"create_at\":1500223829200,\"update_at\":1500223829200,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from mm\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500223823463\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:50:29-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc04236e500), Post:(*model.Post)(0xc0421b8800), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test from mm", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:50:29-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:50:29-07:00] Sending config.Message{Text:"test from mm", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635820629, nsec:211728700, loc:(*time.Location)(0x136df20)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-16T09:50:29-07:00] Receiving config.Message{Text:"test from mm", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{sec:63635820629, nsec:211728700, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:50:36-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U61L2PQ3E", Text:"test from slack", Timestamp:"1500223836.247636", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"", BotID:"", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:50:36-07:00] Sending message from seanvree on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:50:36-07:00] Sending config.Message{Text:"test from slack", Channel:"plex", Username:"seanvree", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635820636, nsec:649159700, loc:(*time.Location)(0x136df20)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-16T09:50:36-07:00] Receiving config.Message{Text:"test from slack", Channel:"plex", Username:"", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{sec:63635820636, nsec:649159700, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:50:36-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"uky5sqe3ni81zkae4mzzt6bu7r\",\"create_at\":1500223836658,\"update_at\":1500223836658,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"}, Broadcast:(*model.WebsocketBroadcast)(0xc04204a0c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:50:36-07:00] map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"uky5sqe3ni81zkae4mzzt6bu7r\",\"create_at\":1500223836658,\"update_at\":1500223836658,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T09:50:59-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"", Text:"", Timestamp:"1500223859.249392", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment{slack.Attachment{Color:"36a64f", Fallback:"This is a test message sent from the WebApp.", CallbackID:"", AuthorName:"", AuthorSubname:"", AuthorLink:"", AuthorIcon:"", Title:"", TitleLink:"", Pretext:"", Text:"This is a test message sent from the WebApp.", ImageURL:"", ThumbURL:"", Fields:[]slack.AttachmentField{slack.AttachmentField{Title:"Priority", Value:"Normal", Short:true}}, Actions:[]slack.AttachmentAction(nil), MarkdownIn:[]string(nil), Footer:"", FooterIcon:"", Ts:""}}, Edited:(*slack.Edited)(nil), SubType:"bot_message", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500223859.249392", BotID:"B61847QE5", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:50:59-07:00] Sending message from Pulseway on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T09:50:59-07:00] ignoring empty message &config.Message{Text:"", Channel:"plex", Username:"Pulseway", UserID:"B61847QE5", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"", Timestamp:time.Time{sec:0, nsec:0, loc:(*time.Location)(nil)}} from slack.seanvree
[37mDEBU[0m[2017-07-16T09:51:17-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:51:17-07:00] sendWsRequest &model.WebSocketRequest{Seq:2, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:51:17-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:2, Data:map[string]interface {}{"node_id":"", "server_time":1.500223877389e+12, "text":"pong", "version":"3.10.0"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T09:51:17-07:00] WS PONG received [37mmodule[0m=matterclient
I have no idea why it isn't triggered .. it works with my bot. Remove the if statement on line 265 and the } on line 275, so it will show for all messages
flog.Debugf("attachments: %#v\n", ev.Attachments)
for _, attach := range ev.Attachments {
if attach.Text != "" {
m.Text = attach.Text
} else {
m.Text = attach.Fallback
}
}
}
I've tested this with dicebot: https://dice-b.appspot.com/ which also send empty text with attachements
Btw, you can now download builds made after every commit, so you don't need to build it self again, if it's added to master. (on the main page)
This issue/previous comment you still have to do yourself though :(
@42wim -
well, i'm not sure why it's not working either.
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd c:\matterbridge
c:\matterbridge>matterbridge --version
version: 0.16.2-dev
c:\matterbridge>matterbridge --dev
flag provided but not defined: -dev
Usage of matterbridge:
-conf string
config file (default "matterbridge.toml")
-debug
enable debug
-gops
enable gops agent
-httptest.serve string
if non-empty, httptest.NewServer serves on this address and blocks
-version
show version
c:\matterbridge>matterbridge --debug
[34mINFO[0m[2017-07-16T19:34:35-07:00] Enabling debug
[34mINFO[0m[2017-07-16T19:34:35-07:00] Running version 0.16.2-dev
[34mINFO[0m[2017-07-16T19:34:35-07:00] WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[34mINFO[0m[2017-07-16T19:34:35-07:00] Starting gateway: matterbridge
[34mINFO[0m[2017-07-16T19:34:35-07:00] Starting bridge: slack.seanvree
[34mINFO[0m[2017-07-16T19:34:35-07:00] Connecting using token (sending and receiving) [34mmodule[0m=slack
[34mINFO[0m[2017-07-16T19:34:35-07:00] slack.seanvree: joining plex (plexslack.seanvree)
[37mDEBU[0m[2017-07-16T19:34:35-07:00] Choosing token based receiving [37mmodule[0m=slack
[34mINFO[0m[2017-07-16T19:34:35-07:00] Starting bridge: mattermost.seanvree
[34mINFO[0m[2017-07-16T19:34:35-07:00] Connecting using login/password (sending and receiving) [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T19:34:35-07:00] Connecting seanvreebot (team: mattermost) on seanvree.com:8065 [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T19:34:35-07:00] Found version 3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false [34mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] trying login mattermost seanvreebot seanvree.com:8065 [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] initUser(): found our team mattermost (id: w33kdw9krtn6xjuznsqxut9yxy) [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] WsClient: making connection: wss://seanvree.com:8065/api/v3/users/websocket [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] WsClient: connected [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-16T19:34:35-07:00] Connection succeeded [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T19:34:35-07:00] mattermost.seanvree: joining plex (plexmattermost.seanvree)
[37mDEBU[0m[2017-07-16T19:34:35-07:00] Choosing login/password based receiving [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:34:35-07:00] Not joining w9if6bim37yttgezkikgbwd9yo already joined. [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] StatusLoop:<nil> [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] WsReceiver event: model.WebSocketEvent{Event:"hello", Data:map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423da300), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-16T19:34:35-07:00] Gateway(s) started succesfully. Now relaying messages
[37mDEBU[0m[2017-07-16T19:34:35-07:00] map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:34:35-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] sendWsRequest &model.WebSocketRequest{Seq:1, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] WsReceiver event: model.WebSocketEvent{Event:"status_change", Data:map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"}, Broadcast:(*model.WebsocketBroadcast)(0xc04200ad00), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:34:35-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:1, Data:map[string]interface {}{"node_id":"", "server_time":1.500258875408e+12, "text":"pong", "version":"3.10.0"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:35-07:00] my bot ID is "B6328FSSU" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:34:35-07:00] my bot ID is "B64DMPPPG" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:34:36-07:00] Start listening for Slack messages [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:34:42-07:00] WsReceiver event: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"}, Broadcast:(*model.WebsocketBroadcast)(0xc042488500), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:42-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:34:44-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"n6iq8bkugtr9uk5u3zfc4rtpbo\",\"create_at\":1500258884390,\"update_at\":1500258884390,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500258878074\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX"}, Broadcast:(*model.WebsocketBroadcast)(0xc0424885c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:34:44-07:00] map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"n6iq8bkugtr9uk5u3zfc4rtpbo\",\"create_at\":1500258884390,\"update_at\":1500258884390,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500258878074\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:34:44-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc042488580), Post:(*model.Post)(0xc0423a0900), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:34:44-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:34:44-07:00] Sending config.Message{Text:"test", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635855684, nsec:403946800, loc:(*time.Location)(0x136df20)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-16T19:34:44-07:00] Receiving config.Message{Text:"test", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{sec:63635855684, nsec:403946800, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:35:09-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U61L2PQ3E", Text:"test from slack", Timestamp:"1500258909.296088", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"", BotID:"", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:35:09-07:00] Sending message from seanvree on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:35:09-07:00] Sending config.Message{Text:"test from slack", Channel:"plex", Username:"seanvree", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635855709, nsec:671355400, loc:(*time.Location)(0x136df20)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-16T19:35:09-07:00] Receiving config.Message{Text:"test from slack", Channel:"plex", Username:"", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{sec:63635855709, nsec:671355400, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:35:09-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"pa9sa5k1ojgh8r6i5d7d37xuor\",\"create_at\":1500258909680,\"update_at\":1500258909680,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423da500), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:35:09-07:00] map[string]interface {}{"channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"pa9sa5k1ojgh8r6i5d7d37xuor\",\"create_at\":1500258909680,\"update_at\":1500258909680,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:35:14-07:00] WsReceiver event: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"}, Broadcast:(*model.WebsocketBroadcast)(0xc0425b2dc0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:35:14-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:35:16-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"gcksnf9ot7y4tj61xjm8ohbfir\",\"create_at\":1500258916819,\"update_at\":1500258916819,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500258910518\"}"}, Broadcast:(*model.WebsocketBroadcast)(0xc04200bf00), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:35:16-07:00] map[string]interface {}{"post":"{\"id\":\"gcksnf9ot7y4tj61xjm8ohbfir\",\"create_at\":1500258916819,\"update_at\":1500258916819,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500258910518\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:35:16-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc04200bec0), Post:(*model.Post)(0xc04246dc00), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test from MM", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:35:16-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:35:16-07:00] Sending config.Message{Text:"test from MM", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635855716, nsec:829543300, loc:(*time.Location)(0x136df20)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-16T19:35:16-07:00] Receiving config.Message{Text:"test from MM", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{sec:63635855716, nsec:829543300, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:35:16-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U63P6V1JQ", Text:" test from MM", Timestamp:"1500258917.297046", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500258917.297046", BotID:"B6328FSSU", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:35:17-07:00] Sending message from Slack API Tester on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:35:17-07:00] Sending config.Message{Text:" test from MM", Channel:"plex", Username:"Slack API Tester", UserID:"B6328FSSU", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635855717, nsec:79815500, loc:(*time.Location)(0x136df20)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-16T19:35:17-07:00] Receiving config.Message{Text:" test from MM", Channel:"plex", Username:"", UserID:"B6328FSSU", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{sec:63635855717, nsec:79815500, loc:(*time.Location)(0x136df20)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:35:17-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"548739uws7ddfcftx9y693r54e\",\"create_at\":1500258917087,\"update_at\":1500258917087,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\" test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"}, Broadcast:(*model.WebsocketBroadcast)(0xc0425b2e80), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:35:17-07:00] map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"548739uws7ddfcftx9y693r54e\",\"create_at\":1500258917087,\"update_at\":1500258917087,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\" test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T19:35:33-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"", Text:"", Timestamp:"1500258933.299024", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment{slack.Attachment{Color:"36a64f", Fallback:"This is a test message sent from the WebApp.", CallbackID:"", AuthorName:"", AuthorSubname:"", AuthorLink:"", AuthorIcon:"", Title:"", TitleLink:"", Pretext:"", Text:"This is a test message sent from the WebApp.", ImageURL:"", ThumbURL:"", Fields:[]slack.AttachmentField{slack.AttachmentField{Title:"Priority", Value:"Normal", Short:true}}, Actions:[]slack.AttachmentAction(nil), MarkdownIn:[]string(nil), Footer:"", FooterIcon:"", Ts:""}}, Edited:(*slack.Edited)(nil), SubType:"bot_message", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500258933.299024", BotID:"B61847QE5", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:35:33-07:00] Sending message from Pulseway on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T19:35:33-07:00] ignoring empty message &config.Message{Text:"", Channel:"plex", Username:"Pulseway", UserID:"B61847QE5", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"", Timestamp:time.Time{sec:0, nsec:0, loc:(*time.Location)(nil)}} from slack.seanvree
[37mDEBU[0m[2017-07-16T19:35:35-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:35:35-07:00] sendWsRequest &model.WebSocketRequest{Seq:2, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:35:35-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:2, Data:map[string]interface {}{"server_time":1.500258935413e+12, "text":"pong", "version":"3.10.0", "node_id":""}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T19:35:35-07:00] WS PONG received [37mmodule[0m=matterclient
Try running https://bintray.com/42wim/nightly/download_file?file_path=matterbridge-v0.16.1-21-gcaaf6f3-win64.exe
If this doesn't work I'm out of options
@42wim IT WORKED!!!!
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>cd C:\matterbridge
C:\matterbridge>matterbridge64 --version
version: 0.16.2-dev caaf6f3
C:\matterbridge>matterbridge64 --debug
[34mINFO[0m[2017-07-16T23:37:06-07:00] Enabling debug
[34mINFO[0m[2017-07-16T23:37:06-07:00] Running version 0.16.2-dev caaf6f3
[34mINFO[0m[2017-07-16T23:37:06-07:00] WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[34mINFO[0m[2017-07-16T23:37:06-07:00] Starting gateway: matterbridge
[34mINFO[0m[2017-07-16T23:37:06-07:00] Starting bridge: slack.seanvree
[34mINFO[0m[2017-07-16T23:37:06-07:00] Connecting using token (sending and receiving) [34mmodule[0m=slack
[34mINFO[0m[2017-07-16T23:37:06-07:00] slack.seanvree: joining plex (plexslack.seanvree)
[37mDEBU[0m[2017-07-16T23:37:06-07:00] Choosing token based receiving [37mmodule[0m=slack
[34mINFO[0m[2017-07-16T23:37:06-07:00] Starting bridge: mattermost.seanvree
[34mINFO[0m[2017-07-16T23:37:06-07:00] Connecting using login/password (sending and receiving) [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T23:37:06-07:00] Connecting seanvreebot (team: mattermost) on seanvree.com:8065 [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T23:37:06-07:00] Found version 3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false [34mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] trying login mattermost seanvreebot seanvree.com:8065 [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] initUser(): found our team mattermost (id: w33kdw9krtn6xjuznsqxut9yxy) [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] WsClient: making connection: wss://seanvree.com:8065/api/v3/users/websocket [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] WsClient: connected [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-16T23:37:06-07:00] Connection succeeded [34mmodule[0m=mattermost
[34mINFO[0m[2017-07-16T23:37:06-07:00] mattermost.seanvree: joining plex (plexmattermost.seanvree)
[37mDEBU[0m[2017-07-16T23:37:06-07:00] StatusLoop:<nil> [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] Choosing login/password based receiving [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:37:06-07:00] WsReceiver event: model.WebSocketEvent{Event:"hello", Data:map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"}, Broadcast:(*model.WebsocketBroadcast)(0xc04236f780), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] Not joining w9if6bim37yttgezkikgbwd9yo already joined. [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] map[string]interface {}{"server_version":"3.10.0.3.10.0.5f41114e341db6d818571e69a8792205.false"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:37:06-07:00] WsReceiver event: model.WebSocketEvent{Event:"status_change", Data:map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"}, Broadcast:(*model.WebsocketBroadcast)(0xc04200b100), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[34mINFO[0m[2017-07-16T23:37:06-07:00] Gateway(s) started succesfully. Now relaying messages
[37mDEBU[0m[2017-07-16T23:37:06-07:00] sendWsRequest &model.WebSocketRequest{Seq:1, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] map[string]interface {}{"status":"online", "user_id":"xgsrtb3e7pbwmqr4h1jrfsh6we"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:37:06-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:1, Data:map[string]interface {}{"node_id":"", "server_time":1.500273426905e+12, "text":"pong", "version":"3.10.0"}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:06-07:00] my bot ID is "B6328FSSU" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T23:37:06-07:00] my bot ID is "B64DMPPPG" [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T23:37:07-07:00] Start listening for Slack messages [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T23:37:50-07:00] WsReceiver event: model.WebSocketEvent{Event:"typing", Data:map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"}, Broadcast:(*model.WebsocketBroadcast)(0xc0421f7d40), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:50-07:00] map[string]interface {}{"parent_id":"", "user_id":"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:37:54-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"ryiri4tdn7g13fksewx57uxe6c\",\"create_at\":1500273474045,\"update_at\":1500273474045,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500273467439\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"}, Broadcast:(*model.WebsocketBroadcast)(0xc0421f7f00), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:37:54-07:00] map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"ryiri4tdn7g13fksewx57uxe6c\",\"create_at\":1500273474045,\"update_at\":1500273474045,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"f58f9n9d9tgcmd1kercnxrp3jw\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from MM\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"f58f9n9d9tgcmd1kercnxrp3jw:1500273467439\"}", "sender_name":"seanvree", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:37:54-07:00] Receiving from matterclient &matterclient.Message{Raw:(*model.WebSocketEvent)(0xc0421f7e80), Post:(*model.Post)(0xc042038600), Team:"mattermost", Channel:"plex", Username:"seanvree", Text:"test from MM", Type:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:37:54-07:00] Sending message from seanvree on mattermost.seanvree to gateway [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:37:54-07:00] Sending config.Message{Text:"test from MM", Channel:"plex", Username:"seanvree", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635870274, nsec:58447700, loc:(*time.Location)(0x1371f20)}} from mattermost.seanvree (plex) to slack.seanvree (plex)
[37mDEBU[0m[2017-07-16T23:37:54-07:00] Receiving config.Message{Text:"test from MM", Channel:"plex", Username:"", UserID:"f58f9n9d9tgcmd1kercnxrp3jw", Avatar:"", Account:"mattermost.seanvree", Event:"", Protocol:"mattermost", Gateway:"matterbridge", Timestamp:time.Time{sec:63635870274, nsec:58447700, loc:(*time.Location)(0x1371f20)}} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T23:38:05-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"U61L2PQ3E", Text:"test from slack", Timestamp:"1500273485.170869", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), SubType:"", Hidden:false, DeletedTimestamp:"", EventTimestamp:"", BotID:"", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T23:38:06-07:00] Sending message from seanvree on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T23:38:06-07:00] Sending config.Message{Text:"test from slack", Channel:"plex", Username:"seanvree", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635870286, nsec:83732100, loc:(*time.Location)(0x1371f20)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-16T23:38:06-07:00] Receiving config.Message{Text:"test from slack", Channel:"plex", Username:"", UserID:"U61L2PQ3E", Avatar:"https://secure.gravatar.com/avatar/da5c2aac9b67ef8bc7e14230a8c2e4e8.jpg?s=48&d=https%3A%2F%2Fa.slack-edge.com%2F66f9%2Fimg%2Favatars%2Fava_0004-48.png", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{sec:63635870286, nsec:83732100, loc:(*time.Location)(0x1371f20)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:38:06-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"znb6q8i3kbya3joogzn4qskxdr\",\"create_at\":1500273486094,\"update_at\":1500273486094,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}"}, Broadcast:(*model.WebsocketBroadcast)(0xc04200b1c0), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:38:06-07:00] map[string]interface {}{"team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"znb6q8i3kbya3joogzn4qskxdr\",\"create_at\":1500273486094,\"update_at\":1500273486094,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"test from slack\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot"} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:38:06-07:00] WS PING [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:38:06-07:00] sendWsRequest &model.WebSocketRequest{Seq:2, Action:"ping", Data:map[string]interface {}(nil), Session:model.Session{Id:"", Token:"", CreateAt:0, ExpiresAt:0, LastActivityAt:0, UserId:"", DeviceId:"", Roles:"", IsOAuth:false, Props:model.StringMap(nil), TeamMembers:[]*model.TeamMember(nil)}, T:(i18n.TranslateFunc)(nil), Locale:""} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:38:06-07:00] WsReceiver response: model.WebSocketResponse{Status:"OK", SeqReply:2, Data:map[string]interface {}{"text":"pong", "version":"3.10.0", "node_id":"", "server_time":1.50027348691e+12}, Error:(*model.AppError)(nil), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:38:06-07:00] WS PONG received [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:38:28-07:00] Receiving from slackclient &slack.MessageEvent{Msg:slack.Msg{Type:"message", Channel:"C612GRVK3", User:"", Text:"", Timestamp:"1500273508.174788", ThreadTimestamp:"", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment{slack.Attachment{Color:"36a64f", Fallback:"This is a test message sent from the WebApp.", CallbackID:"", AuthorName:"", AuthorSubname:"", AuthorLink:"", AuthorIcon:"", Title:"", TitleLink:"", Pretext:"", Text:"This is a test message sent from the WebApp.", ImageURL:"", ThumbURL:"", Fields:[]slack.AttachmentField{slack.AttachmentField{Title:"Priority", Value:"Normal", Short:true}}, Actions:[]slack.AttachmentAction(nil), MarkdownIn:[]string(nil), Footer:"", FooterIcon:"", Ts:""}}, Edited:(*slack.Edited)(nil), SubType:"bot_message", Hidden:false, DeletedTimestamp:"", EventTimestamp:"1500273508.174788", BotID:"B61847QE5", Username:"", Icons:(*slack.Icon)(nil), Inviter:"", Topic:"", Purpose:"", Name:"", OldName:"", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:"", File:(*slack.File)(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:"", ReplyTo:0, Team:"T62DQ8Q3H", Reactions:[]slack.ItemReaction(nil)}, SubMessage:(*slack.Msg)(nil)} [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T23:38:28-07:00] Sending message from Pulseway on slack.seanvree to gateway [37mmodule[0m=slack
[37mDEBU[0m[2017-07-16T23:38:28-07:00] Sending config.Message{Text:"This is a test message sent from the WebApp.", Channel:"plex", Username:"Pulseway", UserID:"B61847QE5", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"", Gateway:"matterbridge", Timestamp:time.Time{sec:63635870308, nsec:277918400, loc:(*time.Location)(0x1371f20)}} from slack.seanvree (plex) to mattermost.seanvree (plex)
[37mDEBU[0m[2017-07-16T23:38:28-07:00] Receiving config.Message{Text:"This is a test message sent from the WebApp.", Channel:"plex", Username:"", UserID:"B61847QE5", Avatar:"", Account:"slack.seanvree", Event:"", Protocol:"slack", Gateway:"matterbridge", Timestamp:time.Time{sec:63635870308, nsec:277918400, loc:(*time.Location)(0x1371f20)}} [37mmodule[0m=mattermost
[37mDEBU[0m[2017-07-16T23:38:28-07:00] WsReceiver event: model.WebSocketEvent{Event:"posted", Data:map[string]interface {}{"post":"{\"id\":\"jhdn47e39bge8nbkgr6s6te9rh\",\"create_at\":1500273508283,\"update_at\":1500273508283,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"This is a test message sent from the WebApp.\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy", "channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O"}, Broadcast:(*model.WebsocketBroadcast)(0xc0423dca40), PreComputeJson:[]uint8(nil)} [37mmodule[0m=matterclient
[37mDEBU[0m[2017-07-16T23:38:28-07:00] map[string]interface {}{"channel_display_name":"PLEX", "channel_name":"plex", "channel_type":"O", "post":"{\"id\":\"jhdn47e39bge8nbkgr6s6te9rh\",\"create_at\":1500273508283,\"update_at\":1500273508283,\"edit_at\":0,\"delete_at\":0,\"is_pinned\":false,\"user_id\":\"xgsrtb3e7pbwmqr4h1jrfsh6we\",\"channel_id\":\"w9if6bim37yttgezkikgbwd9yo\",\"root_id\":\"\",\"parent_id\":\"\",\"original_id\":\"\",\"message\":\"This is a test message sent from the WebApp.\",\"type\":\"\",\"props\":{},\"hashtags\":\"\",\"pending_post_id\":\"\"}", "sender_name":"seanvreebot", "team_id":"w33kdw9krtn6xjuznsqxut9yxy"} [37mmodule[0m=mattermost
the only issue now is that messages on the MM side are duplicated. How do I fix that?
The fact that it worked means that you did something wrong with your compile, because no code was changed after my comment about adding the fallback here: https://github.com/42wim/matterbridge/issues/213#issuecomment-315619265
For the duplication, please create a new issue for this.
@42wim -
DId exactly as stated in this post:
" Download and install the go compiler. https://storage.googleapis.com/golang/go1.8.3.windows-amd64.msi Then just run go get github.com/42wim/matterbridge, this will download and build your executable. The resulting exe will be in c:\users\yourusername\go\bin\matterbridge.exe (actually in %USERPROFILE%\go\bin\matterbridge.exe) "
Just glad we got it working!
THX!
Please answer the following questions.
Which version of matterbridge are you using?
version: 0.15.0 822605con```
If you're having problems with mattermost please specify mattermost version.
Version: 3.10.0 Database: mysql
Please describe the expected behavior.
Bot from Slack relays messages from other bots posted in the channel.
Please describe the actual behavior.
I have slack and mattermost bridged however, my bot on the slack side doesn't relay messages from other bots to mattermost, but it DOES from MM to slack
Use logs from running
matterbridge -debug
if possible.No error in the logs applicable.
Please add your configuration file
(be sure to exclude or anonymize private data (tokens/passwords))