fbridge
fbridge copied to clipboard
RemoteNickFormat is ignored
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}> "
same issue
Same problem here, I guess it's also what #2 is also about ! Didd you find a way to implement it ?
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