1
0
forked from lug/matterbridge
Commit Graph

18 Commits

Author SHA1 Message Date
Qais Patankar
8522d8f29c Fix strip lang in code fences sent to Slack () 2019-01-04 20:32:58 +01:00
Wim
53c86702a3
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:11:03 +01:00
David Hill
192fe89789 Populate user on channel join (slack) () 2018-12-15 22:57:54 +01:00
Wim
959ca3cef3 Fix bot (legacy token) messages not being send. Closes 2018-12-13 20:49:14 +01:00
Wim
d887855e16 Add bot debug info (slack) 2018-12-12 00:27:55 +01:00
Patrick Connolly
fc5e3a6728 Create getChannelsByX functions to make codeclimate happy (slack) () 2018-11-28 11:04:26 +01:00
Patrick Connolly
f5659d455d Sync channel topics between Slack bridges ()
Added logic to allow for configurable synchronisation of topics and purposes of channels between Slack bridges.
2018-11-26 09:47:04 +00:00
Wim
ae32bae791
Add protocol to msg.ID in cache () 2018-11-19 21:28:23 +01:00
Duco van Amstel
2f042ad915 Add more rate-limit handling (slack) () 2018-11-10 22:09:41 +01:00
Wim
1e0bb3da95 Make gocritic linter happier 2018-11-08 22:01:29 +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
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
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