Skip to content

Commit

Permalink
zulip: Use the matterbridge version in the user-agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmv committed Sep 21, 2021
1 parent 417c591 commit 6bd2763
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bridge/zulip/zulip.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func New(cfg *bridge.Config) bridge.Bridger {
}

func (b *Bzulip) Connect() error {
bot := gzb.Bot{APIKey: b.GetString("token"), APIURL: b.GetString("server") + "/api/v1/", Email: b.GetString("login")}
bot := gzb.Bot{APIKey: b.GetString("token"), APIURL: b.GetString("server") + "/api/v1/", Email: b.GetString("login"), UserAgent: fmt.Sprintf("matterbridge/%s", version.Release)}
bot.Init()
q, err := bot.RegisterAll()
b.q = q
Expand Down
20 changes: 12 additions & 8 deletions vendor/github.com/matterbridge/gozulipbot/bot.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6bd2763

Please # to comment.