Commit Graph

165 Commits (master)

Author SHA1 Message Date
Wim 8967f02fc9
Update gozulipbot dependency (#1618) 3 years ago
Wim 831ff6d0a9
Update matterclient dep. Fixes #1617 3 years ago
Wim 4dd8bae5c9
Update dependencies (#1610)
* Update dependencies

* Update module to go 1.17
3 years ago
Wim 20f6c05ec5 Update vendor 3 years ago
Benau 53cafa9f3d
Convert .tgs with go libraries (and cgo) (telegram) (#1569)
This commit adds support for go/cgo tgs conversion when building with the -tags `cgo`
The default binaries are still "pure" go and uses the old way of converting.

* Move lottie_convert.py conversion code to its own file

* Add optional libtgsconverter

* Update vendor

* Apply suggestions from code review

* Update bridge/helper/libtgsconverter.go

Co-authored-by: Wim <wim@42.be>
3 years ago
Wim 44f3e2557d
Update vendor (#1560) 3 years ago
Wim 9efcc41ab2
Update matterbridge/go-xmpp vendor (#1559) 3 years ago
Gary Kim a79e632cdc
Add support for separate display name (nctalk) (#1506)
Signed-off-by: Gary Kim <gary@garykim.dev>
3 years ago
Wim fb5a84212c
Update dependencies (#1521) 3 years ago
Nathanaël dedc1c45a1
Update Rhymen/go-whatsapp module to latest master (2b8a3e9b8aa2) (#1518) 3 years ago
Wim 641ed1873b
Release v1.22.2 (#1504) 3 years ago
Gary Kim 1d50da4b1c
Add support for message deletion (nctalk) (#1492)
* 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>
3 years ago
Wim 4091b6f6b4
Update vendor (#1498) 3 years ago
Wim a0bca42a7a
Update vendor (#1461)
* Update vendored libs

* Fix slack api changes
3 years ago
Wim 21eb37e471
Update vendor (#1446)
* Update vendor

* Use upstream emoji lib again
3 years ago
Wim ee5d9b43b5
Update vendor (#1414) 3 years ago
Wim 0452be0cb3
Update vendor (#1384) 3 years ago
Ivanik 8764be7461
Add vk bridge (#1372)
* 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
3 years ago
Wim cf13fff7d2
Release v1.21.0 (#1348) 3 years ago
Wim 4f20ebead3
Update vendor for next release (#1343) 3 years ago
Gary Kim 41b4e64be9
Update go-nc-talk (nctalk) (#1333)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
Wim 0d7315249d
Update vendor (#1330) 4 years ago
Wim 9dba3d5385
Update rocketchat vendor (#1327)
Contains fixes for #992 and adds more random ID
4 years ago
Wim aa274e5ab7
Update discordgo fork (#1303) 4 years ago
Wim 4cc2c914e6
Update vendor (#1297) 4 years ago
Wim 075a84427f
Update vendor (#1265) 4 years ago
Gary Kim 950f2759bd
Add support for downloading files (nctalk) (#1249)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
Wim 2d98df6122
Update vendor (#1257) 4 years ago
Gary Kim 219a5453f9
Append a suffix if user is a guest user (nctalk) (#1250)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
Sebastian P 214a6a1386
Add Mumble support (#1245) 4 years ago
Wim 2f59abdda7
Update vendor (#1228) 4 years ago
Gary Kim 75f67d2de4
Update nc-talk dependency (#1226) 4 years ago
Tilo Spannagel ad90cf09fe
Update nc-talk to version 0.1.2 (#1220)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
4 years ago
Tilo Spannagel f9928c9e25
Switch to upstream gomatrix (#1219)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
4 years ago
Gary Kim a0741d99b8
Add TLSConfig to nctalk (#1195)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
NikkyAI 27c02549c8
Replace gorilla with melody for websocket API (#1205) 4 years ago
Wim 2f506425c2
Update whatsapp vendor and fix a panic (#1209)
* Fix another whatsapp panic

* Update whatsapp vendor
4 years ago
Wim b451285af7
Sync with upstream gozulipbot fixes (#1202) 4 years ago
Wim 4e50fd8649
Use mattermost v5 module (#1192) 4 years ago
Gary Kim 2d2bebe976
Fix Nextcloud Talk connection failure (#1179)
Fix #1177

Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
Wim 23d8742f0d
Update dependencies for 1.18.0 release (#1175) 4 years ago
Gary Kim 71a5b72aff
Add Nextcloud Talk support (#1167)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
Wim 7f7ca697a0
Ignore non-user messages (msteams). Fixes #1141 (#1149)
Ignore these messages for now, also add a extra
debug option for msteams so we can dump the whole
message.
4 years ago
Wim 9440b9e313
Increase debug logging with function,file and linenumber (#1147)
Show the function name,file and linenumber like this
[0000]  INFO main:         [setupLogger:matterbridge.go:100] Enabling debug logging.
[0000]  INFO main:         [main:matterbridge.go:46] Running version 1.17.5-dev

Only enable this for debug as this adds some overhead.
4 years ago
Wim 393f9e998b
Update dependencies / vendor (#1146) 4 years ago
Wim ba0bfe70a8
Add StripMarkdown option (irc). (#1145)
Enable `StripMarkdown` to strip markdown for irc.
4 years ago
Wim 19eec2ed03
Update Rhymen/go-whatsapp. Fixes #1107 (#1109) 4 years ago
Wim 2595dd30bf
Update matterbridge/go-xmpp. Fixes #1097 (#1099) 4 years ago
Wim 8a87a71927
Update matterbridge/go-xmpp to add PEP-0030 support (#1095) 4 years ago
Wim 13c90893c7
Update matterbridge/Rocket.Chat.Go.SDK (#1087) 4 years ago
Wim 8950575bfb
Update Rhymen/go-whatsapp vendor and whatsapp version (#1078) 4 years ago
Wim a18807f19e
Update matterbridge/go-xmpp to add xmpp avatar support (#1070) 4 years ago
Wim a30bb8fed0 Sync matterbridge/go-xmpp with upstream 4 years ago
Wim 092ca1cd67
Update vendor slack-go/slack (#1068) 4 years ago
Wim 0df2539641
Use upstream yaegashi/msgraph.go/msauth (msteams) (#1067) 4 years ago
Wim 0f2d8a599c
Update vendor d5/tengo (#1066) 4 years ago
Qais Patankar 802c80f40c Update vendor yaegashi/msgraph.go to v0.1.2 (1) 4 years ago
Wim 6b4b19194e
Update vendor shazow/ssh-chat (#1029) 4 years ago
Wim 9785edd263
Remove replace directives and use own fork to make go get work again (#1028)
See https://github.com/golang/go/issues/30354
go get doesn't honor the go.mod replace options.
4 years ago
Wim 795a8705c3 Add initial Microsoft Teams support
Documentation on https://github.com/42wim/matterbridge/wiki/MS-Teams-setup
4 years ago
Wim 3af0dc3b3a Vendor libraries needed for msteams support 4 years ago
Wim d893421c7b
Update vendor keybase/go-keybase-chat-bot (#1019) 4 years ago
Wim 250b3bb579
Use upstream slack-go/slack again (#1018) 4 years ago
Wim 54ed6320c2 Add support for avatars from matrix. #984 (#1007) 4 years ago
Wim 23083f3ae0
Rebase gomatrix vendor with upstream (#1006) 4 years ago
Wim ff8cf067b8 Update kekeybase/go-keybase-chat-bot vendor 4 years ago
Wim 585d1556c1
Disable smartypants in markdown parser. Fixes #989, #983 (#993) 4 years ago
Wim 9d84d6dd64
Update to tengo v2 (#976) 4 years ago
Wim 0f708daf2d
Update dependencies (#975) 4 years ago
Wim b9354de8fd Clean up go.mod and vendor 4 years ago
Guillaume Lazzara c9d5f4c898 Add support for WhatsApp media (jpeg/png/gif) bridging (#974)
* Whatsapp image bridging

* Prevent double message in telegram when media with caption received

Co-authored-by: imShara <shara@protonmail.com>
4 years ago
Wim 12d2c6fe89
Update slack vendor to fix regression (#959) 5 years ago
Wim f43faf15f8
Update slack vendor to master (#958) 5 years ago
Wim 075ca9ca47
Switch to new emoji library kyokomi/emoji (#948) 5 years ago
Wim d4253d7a55
Update shazow/ssh-chat dependency (#947) 5 years ago
Benjamin 0917dc8766 Update markdown parsing library to github.com/gomarkdown/markdown (#944) 5 years ago
Wim aba86855b5
Use own slack fork to fix #937 (#943) 5 years ago
Wim 0bc159341d
Update vendor (#932)
* Update vendor

* Fix godiscord api change
5 years ago
Wim 0b9bc18236
Update vendor matterbridge/gomatrix fork (#928) 5 years ago
Wim bad3b83d33
Update golang-commonmark/linkify vendor and use upstream again. Fixes #924 (#926) 5 years ago
Wim da3868c104 Try to fix blackfriday go modules mess 5 years ago
Wim a3bee01e0a
Update dependencies (#886) 5 years ago
Wim 1532f6e427
Update lrstanley/girc vendor (#884) 5 years ago
MOZGIII cec086994e Add support for sending files via webhook (discord) (#872) 5 years ago
Wim 1552dcb143
Replace bwmarrin/discordgo with matterbridge/discordgo (#878)
Needed for #872
5 years ago
Wim d525f1c9e4
Update Rhymen/go-whatsapp vendor (#876) 5 years ago
cori hudson 921f2dfcdf Add initial Keybase Chat support (#877)
* initial work on native keybase bridging

* Hopefully make a functional keybase bridge

* add keybase to bridgemap

* send to right channel, try to figure out received msgs

* add account and userid

* i am a Dam Fool

* Fix formatting for messages, handle /me

* update vendors, ran golint and goimports

* move handlers to handlers.go, clean up unused config options

* add sample config, fix inconsistent remote nick handling

* Update readme with keybase links

* Resolve fixmie errors

* Error -> Errorf

* fix linting errors in go.mod and go.sum

* explicitly join channels, ignore messages from non-specified channels

* check that team names match before bridging message
5 years ago
Wim cb712ff37d
Update vendor (#852) 5 years ago
Wim ce7b749fd5 Update github.com/Rhymen/go-whatsapp vendor. Fixes #843 5 years ago
Wim 40f1d35415 Fix go mod issue by removing whatsapp-ext 5 years ago
Wim 3418e8c9af
Use upstream whatsapp again (#809) 5 years ago
Wim 115d20373c
Update tengo vendor and load the stdlib. Fixes #789 (#792) 5 years ago
Wim 325d62b41c Update vendor d5/tengo 5 years ago
Wim df3fdc26a0
Use whatsapp forks (#750) 5 years ago
Wim 26a7e35f27
Add MediaConvertWebPToPNG option (telegram). (#741)
* Add MediaConvertWebPToPNG option (telegram).

When enabled matterbridge will convert .webp files to .png files
before uploading them to the mediaserver of the other bridges.

Fixes #398
5 years ago
Wim 96841c70c7 Fix regression in HTML handling (telegram). Closes #734
* Revert back to blackfriday v1
* Add testing
5 years ago
Wim 1bb39eba87
Add scripting (tengo) support for every incoming message (#731)
TengoModifyMessage allows you to specify the location of a tengo (https://github.com/d5/tengo/) script.
This script will receive every incoming message and can be used to modify the Username and the Text of that message.
The script will have the following global variables:
to modify: msgUsername and msgText
to read: msgChannel and msgAccount

The script is reloaded on every message, so you can modify the script on the fly.

Example script can be found in https://github.com/42wim/matterbridge/tree/master/gateway/bench.tengo
and https://github.com/42wim/matterbridge/tree/master/contrib/example.tengo

The example below will check if the text contains blah and if so, it'll replace the text and the username of that message.
text := import("text")
if text.re_match("blah",msgText) {
    msgText="replaced by this"
    msgUsername="fakeuser"
}

More information about tengo on: https://github.com/d5/tengo/blob/master/docs/tutorial.md and
https://github.com/d5/tengo/blob/master/docs/stdlib.md
5 years ago
Krzysiek Madejski 55e79063d6 Add initial WhatsApp support (#711) 5 years ago
Wim 3123695869
Upgrade to latest girc version (irc) (#718) 5 years ago
Wim 716751cf76
Refactor and update RocketChat bridge (#707)
* Add support for editing/deleting messages
* Add support for uploading files
* Add support for avatars
* Use the Rocket.Chat.Go.SDK
* Use the rest and streaming api
5 years ago