From e8f0743edc851cf2c8dab8d2365a1df5d3dbedf4 Mon Sep 17 00:00:00 2001 From: Krzysiek Madejski Date: Wed, 13 Feb 2019 16:38:41 +0100 Subject: [PATCH] Updated Gateway: developing new one (markdown) --- Gateway:-developing-new-one.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Gateway:-developing-new-one.md b/Gateway:-developing-new-one.md index a2b71f9..f8aaf8d 100644 --- a/Gateway:-developing-new-one.md +++ b/Gateway:-developing-new-one.md @@ -10,7 +10,6 @@ How to develop a new gateway/bridge? - `yourbridge.go` with main struct and implementation of the `Bridger` interface - `handlers.go` with handling messages incoming to Bridge - `helpers.go` for all the misc fucntions and helpers -- [ ] While sending the message to the bridge make sure that you set the `config.Message.Channel` field to channel as it is mentioned in the config file. - [ ] Minimal set of features is sending and receiving text messages working. - [ ] Documentation - [ ] Add a [sample configuration](https://github.com/42wim/matterbridge/commit/6372d599b1ca2497aa49142d10496f345041b678#diff-0fcc5f77f08a4f4106d2da34c4dcd133) of your bridge to `matterbridge.toml.sample` and explain all the custom options @@ -51,4 +50,21 @@ Handle messages - [ ] audio - [ ] video - [ ] contacts? -- [ ] any other? \ No newline at end of file +- [ ] any other? + + +## FAQ + +**How can I set the default RemoteNickFormat for a protocol so users don't have to do it in a config file?** + +@42wim? + +**Why on Slack I see bot name instead of remote username?** + +Check if you: +- [ ] did set `Message.Username` on the message being relayed +- [ ] did set `RemoteNickFormat` in config file + +**Sending message to the bridge don't work** + +- [ ] Channels must match. While sending the message to the bridge make sure that you set the `config.Message.Channel` field to channel as it is mentioned in the config file. \ No newline at end of file