5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-03-26 14:23:47 +00:00

128 Commits

Author SHA1 Message Date
Wim
859b084814 Add wait option for populateUsers/Channels (slack) Fixes ()
When setting wait to true, we wait until the populating isn't in progress anymore.
This is used on startup connections where we really need the initial information
which could take a long time on big servers.
2018-12-15 23:21:31 +01:00
David Hill
315a038e00 Populate user on channel join (slack) () 2018-12-15 23:13:53 +01:00
Wim
b3999b6e71 Fix bot (legacy token) messages not being send. Closes 2018-12-15 23:13:42 +01:00
Wim
c78bd24c61 Make slack-legacy change less restrictive () 2018-12-04 10:21:38 +01:00
Wim
02577a2b5c Make sure threaded files stay in thread (slack). Fixes 2018-11-29 00:04:54 +01:00
Wim
73501739d5 Do not post empty messages (slack). Fixes 2018-11-29 00:04:53 +01:00
Wim
ba674af5d4 Handle deleted/edited thread starting messages (slack). Fixes () 2018-11-29 00:04:53 +01:00
Wim
ae32bae791
Add protocol to msg.ID in cache () 2018-11-19 21:28:23 +01:00
Wim
32f57b7c26 Add links to slack bot and legacy config in error message (slack) 2018-11-18 17:14:47 +01:00
Duco van Amstel
ce21ba1545 Fix golint linter issues and enable it in CI () 2018-11-15 20:43:43 +01:00
Patrick Connolly
4254ed3c63 Fix regression in skip logic (slack). () 2018-11-15 19:23:46 +01:00
Patrick Connolly
09713d40ba Fix file caching issue (slack). () 2018-11-14 21:00:21 +01:00
Duco van Amstel
e19ba5a06a Add new Slack connection and forked legacy Slack bridge () 2018-11-13 20:51:19 +01:00
Duco van Amstel
e9419f10d3 Restore file comments coming from Slack () 2018-11-12 15:58:00 +01:00
Duco van Amstel
2f042ad915 Add more rate-limit handling (slack) () 2018-11-10 22:09:41 +01:00
Wim
78401214b0 Make scopelint happy 2018-11-08 22:29:34 +01:00
Wim
1e0bb3da95 Make gocritic linter happier 2018-11-08 22:01:29 +01:00
Wim
59994da176 Act only on UserTypingEvents when enabled 2018-11-08 21:52:10 +01:00
Patrick Connolly
3d281b3316 Add ability to show when user is typing across Slack bridges () 2018-11-08 20:45:40 +01:00
Duco van Amstel
ea86849a58 Fix Slack edit usernames () 2018-11-08 20:07:21 +01:00
Duco van Amstel
d2a1dc792f Refactor and clean-up handlers. (slack) () 2018-11-07 21:35:59 +01:00
David Hill
0e2522279e Clean up various stuff ()
* various cleanups
2018-11-07 20:36:50 +01:00
Duco van Amstel
a1bf37e457 Do not join Slack channel without API access (slack) () 2018-11-07 17:25:00 +01:00
Patrick Connolly
a20b7895a9 Preserve threading between Slack instances ()
* Opportunistically preserve Slack threading when parent thread in cache. []

* Removed slack-specific processing from gateway.

* Added docs.

* Add option to enable threading, with default to off.

* Did cleanup on @42wim's comments.

* Update gateway/gateway.go

Co-Authored-By: patcon <patrick.c.connolly@gmail.com>

* Suggestion from @42wim :)

* Suggestions from @42wim.

* More suggestions.
2018-11-07 09:14:31 +01:00
Duco van Amstel
1269be1d04 Prevent Slack API rate-limit overflow () 2018-11-01 21:28:22 +01:00
Patrick Connolly
d379118772 Fix bridge no longer POSTing username and avatar (slack) ()
* Fixed pointer/reference issue in populateUsers. []

* Accepted codestyle suggestion.

* Update bridge/slack/helpers.go

Co-Authored-By: patcon <patrick.c.connolly@gmail.com>

* Update helpers.go
2018-10-24 21:12:20 +02:00
Duco van Amstel
6911458d15 Clean up message send logic (slack). () 2018-10-22 19:43:57 +02:00
Duco van Amstel
6238effdc2 Clean up user and channel information management (slack) () 2018-10-16 20:34:09 +02:00
Duco van Amstel
498377a230 Clean up code and strengthening (slack) ()
Changes include:
- Refactor of strings into package-wide constants.
- Predeclaration of regexps to be instantiated at package load time.
- Checking of unchecked errors.
- Structural changes:
  - Adding verifications to type-casting code.
  - Remove unnecessary 'len(X) > 0' checks before iterating over X.
  - Remove unnecessary 'else' clause after 'if' with 'return'.
  - Unexporting of public fields of Bridge struct.
- Formatting:
  - One-field-per-line struct definitions.
2018-10-13 01:02:14 +02:00
Duco van Amstel
e15b0e04b8 Refactor slack bridge prelude ()
Distributing the source of the Slack bridge across multiple files to
increase readability and as a prelude to various refactors and
clean-ups.
2018-10-12 23:16:34 +02:00
Wim
52dbd702ad Get up to 1000 channels and private/mp/im channels (slack). Related to 2018-08-28 22:33:07 +02:00
Wim
b51fdbce9f Add caching to fix issue with slack API changes (slack). 2018-08-18 00:12:05 +02:00
Wim
7690be1647 Fix slack file/image downloads after api changes (slack) 2018-08-10 00:39:07 +02:00
Wim
d71850cef6 Use UserID to look for avatar instead of username (slack). Closes 2018-08-06 16:44:15 +02:00
Wim
618953c865 Remove ununsed function (slack) 2018-07-13 23:28:23 +02:00
Wim
e04dd78624 Add support for slack channels by ID. Closes 2018-07-13 23:23:11 +02:00
Maxim
594492fbdd Add Title from attachment slack message () 2018-06-13 21:58:51 +02:00
Patrick Connolly
045cb2058c Fix regexp in replaceMention (slack). () 2018-05-29 22:49:10 +02:00
Wim
07885f5810 Fix iconurl regression (mattermost,slack,rocketchat). Closes 2018-05-27 22:30:17 +02:00
Wim
696c518550 Add error message about webhook (slack) 2018-05-27 22:14:31 +02:00
Wim
411ef2691c Use uuid instead of userid. Fixes 2018-05-27 21:50:00 +02:00
OyyoDams
f6eefa4ecc Fix issue - Avatar spoofing from Slack to Discord with uppercase in nick doesn't work () 2018-05-26 13:25:26 +02:00
Jerry Heiselman
76af9cba5a Properly set Slack user who initiated slash command ()
* Properly set Slack user who initiated slash command
2018-04-25 21:27:34 +02:00
Wim
99ce68e9ba Use username if bot name is Slack API Tester (slack) 2018-04-20 01:01:45 +02:00
Wim
68fbed9281 Make our callbackid more unique. Fixes issue with running multiple matterbridge on the same channel (slack,mattermost) 2018-04-13 22:01:03 +02:00
Jerry Heiselman
76360f89c1 Strip markdown URLs with blank text (slack) () 2018-03-22 22:28:27 +01:00
Wim
8c0b04b995 Ignore restricted_acton on channel join (slack). Closes 2018-03-12 21:14:13 +01:00
Wim
e5989adf92 Add support for NoSendJoinPart. Closes 2018-03-06 21:35:47 +01:00
Wim
ab94b5ca7a Update regex for usergroup matching. Closes 2018-03-05 20:56:33 +01:00
Wim
8d2ce56c37 Fix regression (slack). Closes 2018-03-05 20:19:43 +01:00