Commit Graph

167 Commits

Author SHA1 Message Date
Wim 1552dcb143
Replace bwmarrin/discordgo with matterbridge/discordgo (#878)
Needed for #872
2019-08-26 23:47:50 +02:00
Wim d525f1c9e4
Update Rhymen/go-whatsapp vendor (#876) 2019-08-26 23:22:34 +02:00
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
2019-08-26 21:00:31 +02:00
Wim cb712ff37d
Update vendor (#852) 2019-06-16 23:33:25 +02:00
Wim ce7b749fd5 Update github.com/Rhymen/go-whatsapp vendor. Fixes #843 2019-06-14 00:02:32 +02:00
Wim 40f1d35415 Fix go mod issue by removing whatsapp-ext 2019-06-02 09:35:20 +01:00
Wim 3418e8c9af
Use upstream whatsapp again (#809) 2019-05-30 12:20:56 +02:00
Wim 115d20373c
Update tengo vendor and load the stdlib. Fixes #789 (#792) 2019-04-06 22:18:25 +02:00
Wim 325d62b41c Update vendor d5/tengo 2019-03-05 23:10:45 +01:00
Wim df3fdc26a0
Use whatsapp forks (#750) 2019-03-02 13:04:28 +01:00
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
2019-02-27 00:41:50 +01:00
Wim 96841c70c7 Fix regression in HTML handling (telegram). Closes #734
* Revert back to blackfriday v1
* Add testing
2019-02-24 15:13:56 +01:00
Wim bf21604d42
Make all loggers derive from non-default instance (#728) 2019-02-23 22:51:27 +01:00
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
2019-02-23 16:39:44 +01:00
Wim 5095db8a43 Update vendor 2019-02-23 14:14:29 +01:00
Krzysiek Madejski 55e79063d6 Add initial WhatsApp support (#711) 2019-02-21 20:28:13 +01:00
Wim 3123695869
Upgrade to latest girc version (irc) (#718) 2019-02-16 17:24:04 +01:00
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
2019-02-15 18:20:32 +01:00
Wim 6ebd5cbbd8 Refactor and update RocketChat bridge
* 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
2019-02-15 18:19:34 +01:00
Wim 5af1d80055 Do not panic on non-json response from server (zulip) 2019-02-13 00:29:34 +01:00
Wim 40d76b2296 Fix error handling on bad event queue id (zulip). Closes #694 2019-02-11 01:34:50 +01:00
Wim c81c0dd22a Update vendor, move to labstack/echo/v4 Fixes #698 2019-01-31 17:06:36 +01:00
Wim 04567c765e
Add support for markdown to HTML conversion (matrix). Closes #663 (#670)
This uses our own gomatrix lib with the SendHTML function which
adds HTML to formatted_body in matrix.
golang-commonmark is used to convert markdown into valid HTML.
2019-01-06 22:25:19 +01:00
Wim d2044c647b Update vendor
* go-telegram-bot-api/telegram-bot-api
* lrstanley/girc
* matterbridge/gomatrix
2019-01-03 00:07:50 +01:00
Patrick Connolly e538a4d304 Update nlopes/slack to 4.1-dev (#595) 2018-12-01 19:55:35 +01:00
Duco van Amstel 09875fe160 Update direct dependencies where possible 2018-11-25 21:21:04 +01:00
Duco van Amstel 692bb8faa7
Upgrade logrus / testify to stable versions 2018-11-18 01:10:15 +00:00
Wim f8dc24bc09 Switch back go upstream bwmarrin/discordgo
Commit ffa9956c9b got merged in.
2018-11-13 00:02:07 +01:00
Duco van Amstel f2cdda7278 Update Blackfriday dependency (closes #522) (#532)
- Fixup Telegram bridge implementation to support updated dependency.
2018-10-22 19:48:29 +02:00
Duco van Amstel 917040b044 Update of nlopes/slack dependency (#511) 2018-10-07 23:17:46 +02:00
Wim e0ca876de2 Update vendor lrstanley/girc 2018-09-14 00:18:20 +02:00
Wim 68aeb93afa Update nlopes/slack vendor 2018-08-10 00:38:19 +02:00
Wim 51062863a5 Use mod vendor for vendored directory (backwards compatible) 2018-08-06 21:47:05 +02:00
Wim 7f3cbcedc0 Use own forks for logrus-prefixed-formatter and discordgo 2018-08-06 21:11:13 +02:00
Wim 6f131250f1 Release v1.11.0 2018-06-19 00:28:16 +02:00
Wim fd04e08c9c Update vendor matterbridge/go-xmpp 2018-05-29 23:28:19 +02:00
Wim fc6074ea9f Add vendor github.com/rs/xid 2018-05-27 21:48:57 +02:00
Wim bf0b9959d1 Add vendor github.com/dfordsoft/golib/ic 2018-05-11 21:54:32 +02:00
Wim 85b2d5a124 Update vendor lrstanley/girc 2018-05-09 22:50:44 +02:00
Wim 521a7ed7b0 Update vendor lrstanley/girc 2018-05-09 22:48:39 +02:00
Wim 529b188164 Update vendor go-telegram-bot-api/telegram-bot-api 2018-05-09 22:46:10 +02:00
Wim 8d307d8134 Update vendor matterbridge/go-xmpp 2018-05-09 22:38:17 +02:00
Wim 1605fbc012 Add vendor matterbridge/gozulipbot 2018-05-07 21:06:25 +02:00
Wim 25a72113b1 Add vendor files for spf13/viper 2018-03-04 23:46:13 +01:00
Wim 6a727b9723 Use our own version of go-xmpp with debug output to logrus 2018-02-27 23:22:12 +01:00
Wim 55ab0c12f1 Update vendor labstack/echo 2018-02-21 00:48:10 +01:00
Wim d1227b5fc9 Use prefixed-formatter for better logging 2018-02-21 00:20:25 +01:00
Wim 6ea368c383 Move Sirupsen => sirupsen 2018-02-20 23:41:09 +01:00
Wim 6f78485878 Fix role replace 2018-02-14 23:05:16 +01:00
Wim fd0fe3390b Update vendor bwmarrin/discordgo 2018-02-14 22:22:35 +01:00
Wim 5aab158c0b Update vendor (github.com/mattermost) 2018-02-09 00:11:04 +01:00
Wim 4a96a977c0 Update vendor (slack) 2018-01-08 22:41:38 +01:00
Wim 16f3fa6bae Vendor github.com/matterbridge/gomatrix 2017-12-25 00:54:39 +01:00
Wim 5c919e6bff Update vendor labstack/echo 2017-12-07 23:00:56 +01:00
Wim ed9118b346 Add sshchat dependencies in vendor 2017-12-03 01:24:05 +01:00
Wim 788d3b32ac Update vendor lrstanley/girc and readme 2017-12-02 23:58:02 +01:00
Wim 1d414cf2fd Allow ^ in nick (irc). Closes #305 2017-11-30 00:28:17 +01:00
Wim cc3c168162 Update vendor lrstanley/girc 2017-11-30 00:27:31 +01:00
Wim 71cb9b2d1d Update vendor github.com/matrix-org/gomatrix 2017-11-21 23:48:39 +01:00
Wim 639f9cf966 Update vendor/github.com/mattn/go-xmpp 2017-11-08 23:04:23 +01:00
Wim e313154134 Vendor github.com/lrstanley/girc 2017-11-08 22:47:18 +01:00
Wim b2a6777995 Use matterbridge vendored slack 2017-11-02 17:09:34 +01:00
Wim df74df475b Update vendor 2017-09-25 21:14:08 +02:00
Wim a61e2db7cb Backoff for 60 seconds when reconnecting too fast 2017-09-25 21:12:23 +02:00
Wim d19535fa21 Update vendor (nlopes/slack) 2017-09-11 23:33:58 +02:00
Wim 49204cafcc Update vendor (bwmarrin/discordgo) apiv6 2017-09-11 23:23:54 +02:00
Wim 0352970051 Update vendor (go-telegram-bot-api/telegram-bot-api) 2017-09-11 23:11:48 +02:00
Wim e59d338d4e Use github.com/42wim/go-gitter for now 2017-08-28 23:07:11 +02:00
Wim b963f83c6a Update mattermost vendor (3.7 => 4.1) 2017-08-16 23:37:37 +02:00
Wim 38d09dba2e Update vendor (go-irc) 2017-07-28 14:26:26 +02:00
Wim a97804548e Add vendor (github.com/hashicorp/golang-lru) 2017-07-25 23:56:12 +02:00
Wim 3527e09bc5 Update vendor 2017-07-25 20:10:40 +02:00
Wim 5db24aa901 Update vendor (bwmarrin/discordgo) 2017-07-16 14:38:45 +02:00
Wim aec5e3d77b Update vendor (nlopes/slack) 2017-07-16 14:29:46 +02:00
Wim 6256c066f1 Replace :emoji: with unicode chars. #215
Add vendor github.com/peterhellberg/emojilib
2017-07-09 14:00:28 +02:00
Wim a0938d9386 Add go-charset and chardet to vendor 2017-07-07 23:34:05 +02:00
Wim 1f91461853 Add vendor (steam) 2017-06-22 01:00:27 +02:00
Wim e49266ae43 Update gitter vendor. (fixes crash) 2017-06-19 20:27:14 +02:00
Wim 3a183cb218 Update vendor 2017-06-06 00:04:18 +02:00
Wim 8fede90b9e Remove examples (vendor issues) 2017-05-05 20:45:11 +02:00
Wim eacb1c1771 Update vendor (mattermost) 2017-03-25 21:04:10 +01:00
Wim 07fd825349 Update vendor 2017-03-25 20:45:10 +01:00
Wim be15cc8a36 Update vendored toml. Adds support for inline tables 2017-03-25 19:13:47 +01:00
Wim 2f68519b3c Add gops agent 2017-03-23 23:28:55 +01:00
Wim c5cfbc2297 Add matrix support 2017-02-20 00:50:37 +01:00
Wim 930b639cc9 Update vendor 2017-02-18 23:11:48 +01:00
Wim 79e6c9fa6c Update vendor 2017-01-28 22:45:32 +01:00
Wim 482fbac68f Update vendor (slack) 2017-01-28 00:36:22 +01:00
Wim 077d494c7b Update vendor (telegram) 2017-01-27 00:23:14 +01:00
Wim 09b243d8c2 Update vendor (irc) 2017-01-24 21:24:57 +01:00
Wim f8a6e65bfd Release v0.9.1 2017-01-18 00:02:37 +01:00
Wim 93114b7682 Sync with mattermost 3.6.0 2017-01-17 00:00:26 +01:00
Wim 4ef32103ca Update xmpp vendor 2016-11-26 14:44:33 +01:00
Wim 2867ec459a Add missing imports 2016-11-19 15:05:11 +01:00
Wim cd18d89894 Add initial telegram support 2016-11-15 23:15:57 +01:00
Wim 1d5cd1d7c4 Sync with mattermost 3.5.0 2016-11-12 22:00:53 +01:00
Wim a3dd0f1345 Add support for using avatars from discord,slack and gitter in slack 2016-11-06 00:46:32 +01:00
Wim 37873acfcd Update vendor (slack) 2016-11-06 00:07:24 +01:00
Wim 1b15897135 Fix tight loop (gitter). Closes #68. 2016-11-02 16:13:22 +01:00
Wim 18504ec08d Cleanup irc bridge debug/info messages 2016-09-19 23:35:47 +02:00