Commit Graph

1344 Commits (b339524613994beec40e7309e4c6db57c2b6cfe4)
 

Author SHA1 Message Date
Sandro b339524613
Add Dockerimage for tgs conversion (#1211)
* Add Dockerfile with tgs to png conversion support

* Add .dockerignore to keep cache busts while testing low
4 years ago
Wim d5feda5c8a
Fix error loop (zulip) (#1210)
Fixes #1047
4 years ago
Wim 2f506425c2
Update whatsapp vendor and fix a panic (#1209)
* Fix another whatsapp panic

* Update whatsapp vendor
4 years ago
Wim e8167ee3d7 Add link to nctalk in README 4 years ago
Wim 2f5e211065 Bump version 4 years ago
Wim 39f4fb3446
Release v1.18.1 (#1207) 4 years ago
Wim 56159b9bce
Sleep when ratelimited on joins (matrix). Fixes #1201 (#1206) 4 years ago
Ben Wiederhake b2af76e7dc
Support Telegram animated stickers (tgs) format (#1173)
This is half a fix for #874

This patch introduces a new config flag:
- MediaConvertTgs

These need to be treated independently from the existing
MediaConvertWebPToPNG flag because Tgs→WebP results in an
*animated* WebP, and the WebP→PNG converter can't handle
animated WebP files yet.

Furthermore, some platforms (like discord) don't even support
animated WebP files, so the user may want to fall back to
static PNGs (not APNGs).

The final reason why this is only half a fix is that this
introduces an external dependency, namely lottie, to be
installed like this:

$ pip3 install lottie cairosvg

This patch works by writing the tgs to a temporary file in /tmp,
calling lottie to convert it (this conversion may take several seconds!),
and then deleting the temporary file.
The temporary file is absolutely necessary, as lottie refuses to
work on non-seekable files.
If anyone comes up with a reasonable use case where /tmp is
unavailable, I can add yet another config option for that, if desired.

Telegram will bail out if the option is configured but lottie isn't found.
4 years ago
Wim 491fe35397 Update workflow builds to go 1.15 4 years ago
Wim b451285af7
Sync with upstream gozulipbot fixes (#1202) 4 years ago
Dellle 63a1847cdc
Remove HTML formatting for push messages (#1188) (#1189)
When there is a valid HTML formatting then remove this in the cleartext
field of the matrix client. This leads to nicer push messages on
smartphone apps.

Fix #1188
4 years ago
Wim 4e50fd8649
Use mattermost v5 module (#1192) 4 years ago
Wim dfdffa0027 Add EnableAllEvents
Add option to have all events send to the messagechan
4 years ago
Wim ebd2073144
Handle panic in whatsapp. Fixes #1180 (#1184) 4 years ago
Wim 1e94b716fb
Fix typo in documentation (#1183) 4 years ago
Wim 2a41abb3d1 Update linter config 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 e1629994bd Bump version 4 years ago
Wim e3d8fe4fd8
Release v1.18.0 (#1176) 4 years ago
Wim 23d8742f0d
Update dependencies for 1.18.0 release (#1175) 4 years ago
Wim 3b6a8be07b
Update README.md 4 years ago
Gary Kim 71a5b72aff
Add Nextcloud Talk support (#1167)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
z3bra 213bf349c3
Add an option to log into a file rather than stdout (#1168)
Use Logfile option in the `[general]` section
4 years ago
Andrey Groshev a94fe55886
Fix MarkdownV2 support in Telegram (#1169) 4 years ago
haykam821 9b22f16497
Add websocket to API (#970)
Co-authored-by: Qais Patankar <qaisjp@gmail.com>
4 years ago
Wim 2977a5957e Update README 4 years ago
Wim f70d1c897a Set fetch-depth to 0 to fetch all tags 4 years ago
Wim a4a3525265 Set fetch-depth correct and use vendor when building in workflow 4 years ago
Wim a6dd8446e4 Increase fetch depth in workflow 4 years ago
Wim 7bf9e1cfb3 Fix space in workflow 4 years ago
Wim f291832a77 Upload artifacts on commit 4 years ago
Nathanaël 1fee323247
Reload user information when a new contact is detected (whatsapp) (#1160)
Before returning an empty string, we refresh the WhatsApp contacts and if we found the one we wanted, we can return a real name. Fixes #796
4 years ago
Qais Patankar a41accd033
Add sane RemoteNickFormat default for API (#1157) 4 years ago
James Lu 37f7caf7f3
Skip gIRC built-in rate limiting (irc) (#1164)
By default, gIRC rate limits all outgoing messages. 
Since matterbridge already implements message throttling, this is extra layer of throttling is not necessary.
4 years ago
TheHolyRoger 5847f7758c
Only colour IRC nicks if there is one. (#1161) 4 years ago
Wim bce736993e Remove travis as it isn't working anymore 4 years ago
Wim 5636992446 Increase fetch-depth in workflow 4 years ago
Wim f996a2b7ae More linting fixes 4 years ago
Wim 587de96ab3 Update golangci-lint config 4 years ago
Wim 80eb1cd202 Fix duplicate name in workflow 4 years ago
Wim bbf594c815 Use github workflows 4 years ago
Sandro 2f0f2ee40d
Combine runs to one layer (#1151) 4 years ago
Wim 96022d3aaf Bump version 4 years ago
Wim 8eb5e3cbf8
Release v1.17.5 (#1150) 4 years ago
xnaas ddc2625934
Update Dockerfile so inotify works (#1148)
This change would be required for the Docker image to actually read `RELOADABLE` config options from the `matterbridge.toml`.

This edit would require https://github.com/42wim/matterbridge/wiki/Deploy:-Docker to be updated as well to mention that mounting would have to change to mounting a ***directory*** not a file. inotify inside Docker cannot read directly mounted files, only directories, for whatever reason.

This will preserve setups that were configured to run the old way without breaking them and new configs can be setup "correctly" without issue.
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
Alexander 900375679b
Prevent re-requesting avatar data (xmpp) (#1117)
Prevent asking the server again and again for a
user's avatar if the server does not respond to
our initial request.
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