Commit Graph

163 Commits (ddc262593449357e4d0399af82d26cee0fb65c45)

Author SHA1 Message Date
Wim 67f6257617 Add ShowTopicChange option. Allow/disable topic change messages (currently only from slack). Closes #353 7 years ago
Wim 9f15d38c1c Use upstream again (slack) 7 years ago
Wim 0b3a06d263 Log ConnectionErrorEvent (slack) 7 years ago
Wim 9a6249c4f5 Increase debug logging (slack) 7 years ago
Wim 50bd51e461 Use a better check to join channel (slack) 7 years ago
Wim d0c4fe78ee Allow specifying maximum download size of media using MediaDownloadSize (slack,telegram,matrix) 7 years ago
Wim 265457b451 Refactor and add MediaDownloadSize to General 7 years ago
Wim 0578b21270 Fix message sending (slack) 7 years ago
Wim 36a800c3f5 Add support for comments from slack file uploads (slack) 7 years ago
Wim 6f18790352 Add support to upload files to slack, from bridges with private urls like slack/mattermost/telegram. (slack) 7 years ago
Patrick Connolly bea0bbd0c2 Allow slack messages with variables (eg. @here) to be formatted correctly. (slack) (#288) 7 years ago
Patrick Connolly 4f8ae761a2 Resolve slack channel to human-readable name. (slack) (#282) 7 years ago
Wim b530e92834 Use DisplayName instead of deprecated username (slack). Closes #276 7 years ago
Patrick Connolly 76aafe1fa8 Allowed Slack bridge to extract simpler link format. (#287)
Links sometimes exist without bar delimiters.

See: https://api.slack.com/docs/message-formatting#linking_to_urls
7 years ago
Wim 4e1dc9f885 Use bot username if specified (slack). Closes #273 7 years ago
Wim c4b75e5754 Download files from slack and reupload to mattermost (slack/mattermost). Closes #255
Refactor message.Extra to a map[string][]interface{} to have a bit more flexibility
for stuffing extra stuff.

For attached files from slack, files < 1MB size get downloaded (in memory), and get
put into Extra["file"][]config.FileInfo (containing a pointer to the buffer and
the filename). This is not async so slack channels with lots of attached files
may suffer a slowdown. (the download timeout is set at 5 seconds).
7 years ago
Wim 5f14141ec9 Try to not forward slack unfurls. Closes #266 7 years ago
Wim d59c51a94b Remove unnecessary check, make megacheck happy 7 years ago
Wim 1a40b0c1e9 Relay attachments from mattermost to slack (slack). Closes #260 7 years ago
Wim ed01820722 Add support for deleting messages across bridges.
Currently fully support mattermost,slack and discord.
Message deleted on the bridge or received from other bridges will be
deleted.

Partially support for Gitter.
Gitter bridge will delete messages received from other bridges.
But if you delete a message on gitter, this deletion will not be sent to
other bridges (this is a gitter API limitation, it doesn't propogate edits
or deletes via the API)
7 years ago
Wim 90a61f15cc Do not break messages on newline (slack). Closes #258 7 years ago
Wim a3470f8aec Send first message after connect (slack). Closes #252 7 years ago
Wim 9226252336 Replace mentions from other bridges. (slack). Closes #233 7 years ago
Wim 8b98f605bc Add support for editing messages (slack) 7 years ago
Wim 5a8d7b5f6d Modify Send() to return also a message id 7 years ago
Wim 43bd779fb7 Handle leave/join events (slack). Closes #246 7 years ago
Wim 28710d0bc7 Allow a webhookurl per channel (discord). #239 7 years ago
Wim f8e6a69d6e Add action support for slack,mattermost,irc,gitter,matrix,xmpp,discord. #199 7 years ago
Wim bd97357f8d Disable message from other bots when using webhooks (slack) 7 years ago
Wim dc8743e0c0 Tag messages we send ourself using CallbackID hack (slack). Closes #219 7 years ago
Jerry Heiselman cc5ce3d5ae Suppress parent message when child message is received (slack) (#218)
* Suppress parent message when child message is received

When a thread is started in Slack and a user makes a comment on the thread, matterbridge sends the original parent message again on each child comment. This change suppresses that.

* Update slack.go

Moved determination of ThreadTimestamp to handleSlackClient so the MMMessage struct doesn't need to be modified

* Ran 'go fmt'
7 years ago
Wim 778abea2d9 Add support for fallback/text in attachments (slack) 7 years ago
Wim 20a7ef33f1 Make sure bot doesn't loop now we relay bot messages (slack) 7 years ago
Wim 335ddf8db5 Fix lookup bot username (slack). #213 7 years ago
Wim 9dcd51fb80 Refactor connecting logic slack/mattermost. Fixes #216 7 years ago
Wim 6dee988b76 Fix megacheck / go vet issues 7 years ago
Wim 8411f2aa32 Lookup bot username (slack). #213 7 years ago
Wim b75cf2c189 Replace HTML entities (slack). #215 7 years ago
Wim 830361e48b Deprecate URL,useAPI,BindAddress (slack,mattermost,rocketchat) 7 years ago
Wim c268e90f49 Remove label from URLs (slack). Closes #205
If slack detects a text contains an url it changes it to <http://url|url>.
Strip the |url so that http://url remains.
7 years ago
Wim 2ddc4f7ae9 Add UserID to each message. Closes #200 7 years ago
Wim 87229bab13 Fix sending to different channels on same account (slack). Closes #177 7 years ago
Wim 246c8e4f74 Ignore error on private channel join (slack) Fixes #150 7 years ago
Wim 4d2207aba7 Add support for edited messages (slack) 7 years ago
Wim f935c573e9 Allow bot tokens for now without warning (slack). Closes #140 7 years ago
Wim 072cac0347 Do not relay slackbot messages (slack). Closes #119 7 years ago
Wim 163f55f9c2 Refactor to handle disconnects/reconnects better.
Now try to reconnect every 60 seconds until forever.
7 years ago
Wim 2b0f178ba3 Fix receiving messages from private channels (slack). See #118 8 years ago
Wim 53e9664cde Add support for private channels (slack). Closes #118 8 years ago
Wim b3c3142bb2 Do not use API functions in webhook (slack). Closes #110 8 years ago
Wim d5845ce900 Replace id-mentions to usernames (slack). Closes #86 8 years ago
Wim 99d130d1ed Refactor 8 years ago
Wim a3dd0f1345 Add support for using avatars from discord,slack and gitter in slack 8 years ago
Wim 2dbe0eb557 Add support for dynamic IconURL (slack). Closes #43 8 years ago
Wim c3a8b7a997 Refactor modifyMessage 8 years ago
Wim 96620a3c2c Drop first received message on connection to avoid duplicates (slack). Fixes #55 8 years ago
Wim e7107cf782 Use RTM only on API (slack). Fix #56 8 years ago
Wim db0e4ba8c5 Add error message about non-existing channels (slack) 8 years ago
Wim 0e527a4252 Fix slack channel join 8 years ago
Wim dce600ad51 Fix joining slack/mattermost channels using the webhook 8 years ago
Wim 0e96e9f9be Cleanup slack bridge debug/info messages 8 years ago
Wim 7baf386ede Refactor for more flexibility
* Move from gcfg to toml configuration because gcfg was too restrictive
* Implemented gateway which has support multiple in and out bridges.
* Allow for bridging the same bridges, which means eg you can now bridge between multiple mattermosts.
* Support multiple gateways
8 years ago
Wim b30e85836e Add Slack support 8 years ago