fbridge icon indicating copy to clipboard operation
fbridge copied to clipboard

RemoteNickFormat is ignored

Open FunctionalHacker opened this issue 4 years ago • 3 comments

Hi! Thanks for this great tool, I got it working fairly easily. I will create a docker container for this when I have the time to make setting up easier.

I have one problem however: RemoteNickFormat is ignored, meaning messages sent to Facebook will just contain the message, no info on who wrote the message. Here are the relevant parts of my matterbridge.toml:

[api.myapi]
BindAddress="127.0.0.1:4242"
Buffer=1000
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "

## This is the default FB gateway. All facebook measseages will be sent here
[[gateway]]
name="FBgateway"
enable=true
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "

FunctionalHacker avatar May 31 '20 07:05 FunctionalHacker

same issue

jakubiakdev avatar Jun 04 '20 19:06 jakubiakdev

Same problem here, I guess it's also what #2 is also about ! Didd you find a way to implement it ?

theophanemayaud avatar Sep 26 '20 13:09 theophanemayaud

Ohhh well I figured out a simple way that seems to work ! In fbridge.py, just add jmsg["username"]+ on line 69 before jmsg["text"] The 69th line, which is initially like this :

fbClient.send(Message(text=jmsg["text"]), thread_id=fbThread, thread_type=threadType)

Becomes

fbClient.send(Message(text=jmsg["username"]+jmsg["text"]), thread_id=fbThread, thread_type=threadType)

I made a PR for this : #6

theophanemayaud avatar Sep 26 '20 13:09 theophanemayaud