From fa57aa2b91bb39364a7a837a8b942fc61adaec1e Mon Sep 17 00:00:00 2001 From: Cori Hudson Date: Sat, 24 Aug 2019 12:51:46 -0400 Subject: [PATCH] add sample config, fix inconsistent remote nick handling --- bridge/keybase/keybase.go | 3 +-- matterbridge.toml.sample | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/bridge/keybase/keybase.go b/bridge/keybase/keybase.go index cfe13e89..4033d731 100644 --- a/bridge/keybase/keybase.go +++ b/bridge/keybase/keybase.go @@ -64,8 +64,7 @@ func (b *Bkeybase) Send(msg config.Message) (string, error) { // kbchat lib does not support message editing yet // Send regular message - body := msg.Username + ": " + msg.Text - resp, err := b.kbc.SendMessageByTeamName(b.team, body, &b.channel) + resp, err := b.kbc.SendMessageByTeamName(b.team, msg.Username+msg.Text, &b.channel) if err != nil { return "", err } diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 4a50aed1..de75c8df 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -522,6 +522,29 @@ StripNick=false #OPTIONAL (default false) ShowTopicChange=false +################################################################### +# +# Keybase +# You should have a separate bridge account on Keybase +# (it also needs to be logged in on the system you're running the bridge on) +# +################################################################### + +[keybase.myteam] + +# RemoteNickFormat defines how remote users appear on this bridge +# See [general] config section for default options +RemoteNickFormat="{NICK} ({PROTOCOL}): " + +# extra label that can be used in the RemoteNickFormat +# optional (default empty) +Label="" + +# Your team on Keybase. +# The bot user MUST be a member of this team +# REQUIRED +Team="myteam" + ################################################################### #slack section ###################################################################