Patrick Connolly
8971502f31
Allowed Slack attachments to be properly updated on edit.
2018-10-24 17:03:00 +08:00
Patrick Connolly
eeccb7acd3
Fixed bug in msg/rmsg confusion.
2018-10-24 17:02:29 +08:00
Patrick Connolly
434184507a
Merge branch '536-fixed-populateUsers' into 499-google-translation
2018-10-24 15:43:35 +08:00
Patrick Connolly
4bcd1171a7
Merge branch 'master' into 499-google-translation
2018-10-24 15:38:52 +08:00
Patrick Connolly
24a60f262a
Update helpers.go
2018-10-24 11:58:20 +08:00
Wim
76a601a474
Update bridge/slack/helpers.go
...
Co-Authored-By: patcon <patrick.c.connolly@gmail.com >
2018-10-24 11:38:57 +08:00
Patrick Connolly
7705aa2a3b
Accepted codestyle suggestion.
2018-10-24 01:32:50 +08:00
Patrick Connolly
fc8fe48b49
Cleaned up logic around knowing whether message is translated.
2018-10-23 22:41:58 +08:00
Patrick Connolly
c0b64573a5
Created handleTranslation func. Added IsTranslation key to Message struct.
2018-10-23 20:17:42 +08:00
Patrick Connolly
25dc18518e
Fixed pointer/reference issue in populateUsers. [ #536 ]
2018-10-23 19:10:32 +08:00
Patrick Connolly
5697772ee3
Removed newlines from link to untranslated message.
2018-10-23 17:39:48 +08:00
Duco van Amstel
6911458d15
Clean up message send logic (slack). ( #531 )
2018-10-22 19:43:57 +02:00
Patrick Connolly
3b0a91d3ee
Fixed poor trimming of translation source text.
2018-10-20 19:48:36 +08:00
Patrick Connolly
311ac5a099
Added general slack msg options back into API call.
2018-10-20 19:31:55 +08:00
Patrick Connolly
93a87e153d
Fixed missing variable.
2018-10-20 18:16:50 +08:00
Patrick Connolly
21c8dcb1ba
Show untranslated text in attachment when using Slack.
2018-10-20 18:09:59 +08:00
Patrick Connolly
5a2610991c
Updated to accomodate breaking changes in slack pkg.
2018-10-20 17:49:12 +08:00
Duco van Amstel
6238effdc2
Clean up user and channel information management (slack) ( #521 )
2018-10-16 20:34:09 +02:00
Duco van Amstel
498377a230
Clean up code and strengthening (slack) ( #519 )
...
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 ( #517 )
...
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 #489
2018-08-28 22:33:07 +02:00
Wim
b51fdbce9f
Add caching to fix issue with slack API changes (slack). #481
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 #472
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 #436
2018-07-13 23:23:11 +02:00
Maxim
594492fbdd
Add Title from attachment slack message ( #446 )
2018-06-13 21:58:51 +02:00
Patrick Connolly
045cb2058c
Fix regexp in replaceMention (slack). ( #435 )
2018-05-29 22:49:10 +02:00
Wim
07885f5810
Fix iconurl regression (mattermost,slack,rocketchat). Closes #430
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 #429
2018-05-27 21:50:00 +02:00
OyyoDams
f6eefa4ecc
Fix issue #432 - Avatar spoofing from Slack to Discord with uppercase in nick doesn't work ( #433 )
2018-05-26 13:25:26 +02:00
Jerry Heiselman
76af9cba5a
Properly set Slack user who initiated slash command ( #394 )
...
* 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) ( #392 )
2018-03-22 22:28:27 +01:00
Wim
8c0b04b995
Ignore restricted_acton on channel join (slack). Closes #387
2018-03-12 21:14:13 +01:00
Wim
e5989adf92
Add support for NoSendJoinPart. Closes #382
2018-03-06 21:35:47 +01:00
Wim
ab94b5ca7a
Update regex for usergroup matching. Closes #379
2018-03-05 20:56:33 +01:00
Wim
8d2ce56c37
Fix regression (slack). Closes #384
2018-03-05 20:19:43 +01:00
Wim
f2f1d874e1
Use viper (github.com/spf13/viper) for configuration
2018-03-04 23:52:14 +01:00
Wim
79c4ad5015
Remove unused function
2018-03-03 11:08:39 +01:00
Wim
e24f1c7c87
Use replaceVariable for usergroups (slack) #379
2018-03-02 22:32:27 +01:00
Wim
0bc9c70c66
Add usergroup support (slack). Closes #379
2018-02-28 22:54:47 +01:00
Wim
594d2155e3
Improve debug messages
2018-02-28 22:23:29 +01:00
Wim
2bac867382
Refactor using factory
2018-02-27 23:22:12 +01:00
Wim
1578ebb0e2
Refactor slack
2018-02-27 23:22:10 +01:00
Wim
78238c85d4
Add share support between slack instances. Closes #369
2018-02-23 00:49:32 +01:00
Wim
f82a9cc7ac
Fix Update userlist on join (slack). Closes #372
2018-02-22 23:56:00 +01:00
Wim
cce7624ab8
Update userlist on join (slack). Closes #372
2018-02-22 23:36:22 +01:00