summaryrefslogtreecommitdiffstats
path: root/bridge
Commit message (Collapse)AuthorAgeFilesLines
* Add support for separate display name (nctalk) (#1506)Gary Kim2021-06-191-4/+15
| | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Add support for message deletion (nctalk) (#1492)Gary Kim2021-06-011-44/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nctalk: add message deletion support Signed-off-by: Gary Kim <gary@garykim.dev> * nctalk: seperate out deletion and sending logic Signed-off-by: Gary Kim <gary@garykim.dev> * nctalk: update library to v0.2.0 Signed-off-by: Gary Kim <gary@garykim.dev> * Rename functions to be clearer Signed-off-by: Gary Kim <gary@garykim.dev> * Update to go-nc-talk v0.2.1 Signed-off-by: Gary Kim <gary@garykim.dev> * Update to go-nc-talk v0.2.2 Signed-off-by: Gary Kim <gary@garykim.dev> * Make deletions easier to debug Signed-off-by: Gary Kim <gary@garykim.dev>
* Fix content body issue for redactions (matrix) (#1496)Gary Kim2021-05-291-7/+7
| | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Add a MessageClipped option to set your own clipped message. Closes #1359 ↵Wim2021-05-277-94/+104
| | | | (#1487)
* Support sending file URLs (nctalk) (#1489)Gary Kim2021-05-271-0/+31
| | | | | | | | | | | | * nctalk: support sending file URLs Signed-off-by: Gary Kim <gary@garykim.dev> * nctalk: reduce nesting Co-authored-by: Wim <wim@42.be> Signed-off-by: Gary Kim <gary@garykim.dev> Co-authored-by: Wim <wim@42.be>
* Make DocumentMessage handler use FileName attribute (whatsapp) (#1488)Avinash Reddy2021-05-261-2/+2
| | | | | | | * [whatsapp] make DocumentMessage handler use FileName attribute. referenced: https://github.com/Rhymen/go-whatsapp/blob/master/message.go#L582 * fix lint
* Fix crash on encountering VideoMessage (whatsapp) (#1483)Avinash Reddy2021-05-231-0/+4
| | | | | | | * [whatsapp] fix crash on encountering VideoMessage * Update handlers.go * gofmt
* Rename .jpe files to .jpg Fixes #1463 (whatsapp) (#1485)Wim2021-05-231-0/+5
|
* Handle document messages (whatsapp) (#1475)Avinash Reddy2021-05-211-0/+57
| | | | | | | | | | | * [Whatsapp] Add DocumentMessage handler * Fix typo Thanks @42wim :) Co-authored-by: Wim <wim@42.be> Co-authored-by: Wim <wim@42.be>
* Add MxId/Token login option for Matrix (#1438)Jason Robinson2021-05-172-17/+29
| | | | | | | | | | | | | * Add possibility for using MxId/Token with Matrix Makes it possible to configure a Matrix bot to use Matrix ID + Access token instead of username/password. This makes it possible to use the bot in environments where password login is disabled (for example SSO environments). Matrix user ID's are commonly referred to as "MXID's". I thought about (ab)using "Login" here but it felt like a bad idea given it's used as "username" for the password login. None of the other configuration items felt fitting. Closes #1429 * MxId -> MxID * Add err != nil to matrix.NewClient
* discord: Add AllowMention to restrict allowed mentions (#1462)Alexandre GV2021-05-134-33/+63
| | | | | | | | | | | | | | | | | | | | | | | | | * Add DisablePingEveryoneHere/DisablePingRoles/DisablePingUsers keys to config * Add basic AllowedMentions behavior to discord webhooks * Initialize b.AllowedMentions on Discord Bridger init * Call b.getAllowedMentions on each webhook to allow config hot reloading * Add AllowedMentions on all Discord webhooks/messages * Add DisablePingEveryoneHere/DisablePingRoles/DisablePingUsers to matterbridge.toml.sample * Change 'Disable' for 'Allow' and revert logic in Discord AllowedMentions * Update Discord AllowedMentions in matterbridge.toml.sample * Fix typo in DisableWebPagePreview * Replace 'AllowPingEveryoneHere' with 'AllowPingEveryone' * Replace 3 AllowPingEveryone/Roles/Users bools with an array * Fix typo
* Update vendor (#1461)Wim2021-05-052-2/+2
| | | | | * Update vendored libs * Fix slack api changes
* Adding caption to send telegram images. Fixes #1357 (#1358)Paul2021-04-032-29/+45
| | | | | | | | | | | | | | | | | * Used tgbotapi caption option to attach caption to photos / documents * remove "text/template/parse" * added TGGetParseMode to clean up. Added tg upload function for video, audio and voice * fixed varname Textout. Changed fileextension logic to avoid chaining regex * fixed textout varname * fixed parsemode varname * gofmt Co-authored-by: Wim <wim@42.be>
* Set ogg as default audiomessage when none found (whatsapp). Fixes #1427 (#1431)Wim2021-03-201-0/+4
|
* Declare GUILD_MEMBERS privileged intent (discord) (#1428)James Lu2021-03-201-0/+5
| | | | | | | | Without this declared, it seems that Discord will not send any member update events after connection, even if the privileged gateway intent is enabled for the bot in settings. This causes nick tracking to get out of sync when people change their nicks after the bot connects. See: https://discord.com/developers/docs/topics/gateway#gateway-intents
* Make lottie_convert work on platforms without /dev/stdout (#1424)Ben Wiederhake2021-03-201-9/+26
| | | Fixes #1423.
* Check rune length instead of bytes (telegram). Fixes #1409 (#1412)Wim2021-02-251-8/+10
|
* Fix webhooks for channels with special characters (xmpp) (#1405)Alexander2021-02-171-1/+2
|
* Handle Rocket.Chat attachments (#1395)Tadeo Kondrak2021-02-152-0/+63
|
* Use valid transmitter Log default (discord) (#1402)Qais Patankar2021-02-151-1/+1
| | | | | | * Use valid transmitter Log default (discord) Using a logger created by `log.NewEntry(nil)` would crash. (matterbridge does not encounter this issue as it updates the Log field manually.)
* Fix panic when the webhook fails (xmpp) (#1401)Alexander2021-02-151-1/+6
|
* Pick up all the webhooks (discord) (#1383)Wim2021-02-011-1/+0
|
* Add vk bridge (#1372)Ivanik2021-01-291-0/+327
| | | | | | | | | | | | | | | | | | | | | * Add vk bridge * Vk bridge attachments * Vk bridge forwarded messages * Vk bridge sample config and code cleanup * Vk bridge add vendor * Vk bridge message edit * Vk bridge: fix fetching names of other bots * Vk bridge: code cleanup * Vk bridge: fix shadows declaration * Vk bridge: remove UseFileURL
* Add an even more debug option (discord) (#1368)Wim2021-01-231-0/+5
| | | Enable discordgo debugging with debuglevel=1 under the [discord.xxx] section, for even more debugging fun.
* Allow the XMPP bridge to use slack compatible webhooks (xmpp) (#1364)Alexander2021-01-211-6/+51
| | | | | | | | | * Add mod_slack_webhook support to the XMPP bridge * Replace b.webhookURL with b.GetString * Do not return a message ID on webhook POST * Add the XMPP webhook to the sample configuration
* Add jpe as valid image filename extension (telegram) (#1360)Paul2021-01-141-1/+1
|
* Improve Markdown in transmitter docs (discord) (#1351)Qais Patankar2021-01-031-6/+7
|
* Rename .oga audio files to .ogg (telegram) (#1349)Wim2021-01-021-0/+5
|
* Refactor "msg-parent-not-found" to config.ParentIDNotFound (#1347)Qais Patankar2020-12-315-6/+19
|
* Reject cross-channel message references (discord) (#1345)Qais Patankar2020-12-311-3/+3
| | | | | | | Discord message references have been designed in a way for this to support cross-channel or even cross-guild references in the future. This will ensure the ParentID is *not* set when the message refers to a message that was sent in a different channel.
* Add a prefix handler for unthreaded messages (discord) (#1346)Qais Patankar2020-12-311-0/+6
|
* Add threading support with token (discord) (#1342)Wim2020-12-314-3/+30
| | | | | | | | Webhooks don't support the threading yet, so this is token only. In discord you can reply on each message of a thread, but this is not possible in mattermost (so some changes added there to make sure we always answer on the rootID of the thread). Also needs some more testing with slack. update : It now also uses the token when replying to a thread (even if webhooks are enabled), until webhooks have support for threads.
* Fix 'webook' typo in discord/webhook.go (#1344)Qais Patankar2020-12-311-1/+1
|
* Add support for stateless bridging via draft/relaymsg (irc) (#1339)James Lu2020-12-301-16/+57
| | | | | | | | | | | | | | | | | * irc: add support for stateless bridging via draft/relaymsg As discussed at https://github.com/42wim/matterbridge/issues/667#issuecomment-634214165 * irc: handle the draft/relaymsg tag in spoofed messages too * Apply suggestions from code review Co-authored-by: Wim <wim@42.be> * Run gofmt on irc.go * Document relaymsg in matterbridge.toml.sample Co-authored-by: Wim <wim@42.be>
* Update webhook documentation (discord) (#1335)Qais Patankar2020-12-171-5/+0
|
* Split Bdiscord.Send into handleEventWebhook and handleEventBotUser (discord)Qais Patankar2020-12-132-43/+53
|
* Move webhook specific logic to its own file (discord)Qais Patankar2020-12-132-94/+102
|
* Extract maybeGetLocalAvatar into its own function (discord)Qais Patankar2020-12-131-15/+17
|
* Remove WebhookURL support (discord)Qais Patankar2020-12-132-9/+15
|
* Add initial transmitter implementation (discord)Qais Patankar2020-12-135-120/+371
| | | | | | This has been tested with one webhook in one channel. Sends, edits and deletions work fine
* Revert "Disable webhook editing (#1296)" (discord)Qais Patankar2020-12-131-10/+6
| | | | This reverts commit c23252ab53182cc6e68086f29c7137fbc27917ee.
* Update go-nc-talk (nctalk) (#1333)Gary Kim2020-12-101-0/+7
| | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Parse fencedcode in ParseMarkdown. Fixes #1127 (#1329)Wim2020-12-061-1/+1
|
* Mark messages as read (matrix). Fixes #1317 (#1328)Wim2020-12-061-0/+5
|
* Implement ratelimiting (matrix). Fixes #1238 (#1326)Wim2020-12-062-51/+169
|
* Make handlers run async (irc) (#1325)Wim2020-12-051-7/+7
| | | | | | | | This makes the handlers run in a seperate go-routine in girc, and makes sure that girc isn't blocked on executing PONG requests when matterbridge takes a long time handling the incoming message. This can happen when another bridge is in a backoff state where the backoff time exceeds the IRC ping timeout.
* Refactor guild finding code (discord) (#1319)Qais Patankar2020-12-031-18/+35
|
* Add nil checks to text message handling (mumble) (#1321)Sebastian P2020-12-031-0/+6
|
* Rename jfif to jpg (whatsapp). Fixes #1292Wim2020-11-291-0/+5
|
* Refactor handleTextMessage (whatsapp)Wim2020-11-291-13/+9
|