summaryrefslogtreecommitdiffstats
path: root/bridge/slack/helpers.go
Commit message (Collapse)AuthorAgeFilesLines
* Improve Slack attachments formatting (slack) (#1807)Andy2022-05-091-9/+2
| | | | | | | | * Improve Slack attachments formatting (slack) * Add TitleLink * Add Footer * Fix linter issues
* Use slack real name as user name (slack) (#1775)Alexander2022-03-261-0/+3
| | | | | * Use slack real name as user name * Change slack option UseRealName to UseFullName
* Use upstream slack-go/slack again (#1018)Wim2020-03-011-1/+1
|
* Convert slack bold/strike to correct markdown (slack). Fixes #918 (#930)Wim2019-10-271-0/+30
|
* Refactor channel and user management (slack) (#766)Duco van Amstel2019-03-151-3/+3
|
* Split-out Slack user and channel management (#762)Duco van Amstel2019-03-121-225/+13
|
* Hint at thread replies when messages are unthreaded (slack) (#684)Wim2019-02-101-0/+7
|
* Optimize handling of very large slack teams. Fixes #695Wim2019-01-301-8/+27
| | | | | | | | | | Stop getting users if we reach 2000 users. Slack will rate-limit us even if we follow their limits. This means that we now have to lookup every user that says a message for the first time. This should be less intensive on the API. This also disables partly fb713ed91bfb48c0037e489f80be85c54e69953a for now. ChannelMembers will not be filled.
* Add initial support for getting ChannelMember info of all bridges (#678)Wim2019-01-181-0/+46
| | | | | | | | | | | | | | * Add initial support for getting ChannelMember info of all bridges. Adds an EventGetChannelMembers event, which gets send every x time to all bridges. Bridges should respond on this event with a Message containing ChannelMembers in the EventGetChannelMembers key in the Extra field. handleEventGetChannelMembers will handle this Message and sets the contained ChannelMembers to the Bridge struct. * Add ChannelMembers support to the slack bridge
* Fix #668 strip lang in code fences sent to Slack (#673)Qais Patankar2019-01-041-0/+5
|
* Add wait option for populateUsers/Channels (slack) Fixes #579 (#653)Wim2018-12-151-4/+10
| | | | | 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.
* Populate user on channel join (slack) (#644)David Hill2018-12-151-0/+20
|
* Fix bot (legacy token) messages not being send. Closes #571Wim2018-12-131-1/+1
|
* Add bot debug info (slack)Wim2018-12-121-0/+1
|
* Create getChannelsByX functions to make codeclimate happy (slack) (#610)Patrick Connolly2018-11-281-9/+7
|
* Sync channel topics between Slack bridges (#585)Patrick Connolly2018-11-261-4/+20
| | | Added logic to allow for configurable synchronisation of topics and purposes of channels between Slack bridges.
* Add protocol to msg.ID in cache (#596)Wim2018-11-191-2/+3
|
* Add more rate-limit handling (slack) (#581)Duco van Amstel2018-11-101-25/+68
|
* Make gocritic linter happierWim2018-11-081-3/+4
|
* Fix Slack edit usernames (#570)Duco van Amstel2018-11-081-9/+29
|
* Refactor and clean-up handlers. (slack) (#533)Duco van Amstel2018-11-071-11/+75
|
* Clean up various stuff (#508)David Hill2018-11-071-24/+23
| | | * various cleanups
* Prevent Slack API rate-limit overflow (#539)Duco van Amstel2018-11-011-0/+35
|
* Fix bridge no longer POSTing username and avatar (slack) (#536)Patrick Connolly2018-10-241-2/+4
| | | | | | | | | | | | * Fixed pointer/reference issue in populateUsers. [#536] * Accepted codestyle suggestion. * Update bridge/slack/helpers.go Co-Authored-By: patcon <patrick.c.connolly@gmail.com> * Update helpers.go
* Clean up user and channel information management (slack) (#521)Duco van Amstel2018-10-161-13/+58
|
* Clean up code and strengthening (slack) (#519)Duco van Amstel2018-10-131-38/+35
| | | | | | | | | | | | | 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.
* Refactor slack bridge prelude (#517)Duco van Amstel2018-10-121-0/+116
Distributing the source of the Slack bridge across multiple files to increase readability and as a prelude to various refactors and clean-ups.