Wim
588b8e0303
Make interfacer linter happy
2018-11-08 00:35:30 +01:00
Wim
1794922263
Make unparam linter happy
2018-11-08 00:29:30 +01:00
Patrick Connolly
f2703979a4
Clean up config loading. ( #561 )
2018-11-07 22:32:12 +01:00
Duco van Amstel
d2a1dc792f
Refactor and clean-up handlers. (slack) ( #533 )
2018-11-07 21:35:59 +01:00
David Hill
0e2522279e
Clean up various stuff ( #508 )
...
* various cleanups
2018-11-07 20:36:50 +01:00
Duco van Amstel
a1bf37e457
Do not join Slack channel without API access (slack) ( #563 )
2018-11-07 17:25:00 +01:00
Patrick Connolly
a20b7895a9
Preserve threading between Slack instances ( #529 )
...
* Opportunistically preserve Slack threading when parent thread in cache. [#529 ]
* 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
Patrick Connolly
5666821e7b
Add a health endpoint to API ( #554 )
2018-11-07 09:11:59 +01:00
Patrick Connolly
5132d8f097
Stop setting API ring buffer capacity if not specified. ( #552 )
2018-11-05 21:53:51 +01:00
Patrick Connolly
7e62bc4819
Remove hyphens when auto-loading envvars from viper config ( #545 )
...
* When auto-loading envvars from toml keys, remove hyphens.
See: https://unix.stackexchange.com/questions/23659/can-shell-variable-include-character
2018-11-03 14:42:27 +01:00
NikkyAI
d058be25ad
Respond with message on connect (api) ( #550 )
...
fix #549
2018-11-02 16:35:13 +01:00
Duco van Amstel
1269be1d04
Prevent Slack API rate-limit overflow ( #539 )
2018-11-01 21:28:22 +01:00
Wim
e2b50d6194
Add better support for multiperson DM (mattermost)
2018-10-27 22:02:25 +02:00
Wim
107969c09a
Split up cookie token and personal token (mattermost). Fixes #530 ( #540 )
2018-10-26 16:47:56 +02:00
Patrick Connolly
d379118772
Fix bridge no longer POSTing username and avatar (slack) ( #536 )
...
* 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
2018-10-24 21:12:20 +02:00
Duco van Amstel
f2cdda7278
Update Blackfriday dependency ( closes #522 ) ( #532 )
...
- Fixup Telegram bridge implementation to support updated dependency.
2018-10-22 19:48:29 +02:00
Duco van Amstel
6911458d15
Clean up message send logic (slack). ( #531 )
2018-10-22 19:43:57 +02: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
NikkyAI
54adb0509e
Fix mentions cuttíng off all text after the mention (discord) ( #506 )
2018-09-29 20:02:59 +02:00
Wim
bd3a3b6eaf
Let webhook also replace mentions (discord). Closes #502
2018-09-22 22:15:19 +02:00
NikkyAI
296428d53e
Fix Discord mentions by populating the nickMemberMap at connect ( #498 )
2018-09-17 21:25:06 +02:00
Jerry Heiselman
a431a4fa04
Replace @... string with user mention if match found (discord) ( #492 ). Closes #460
...
* Added check for @-mention pattern and replacing it with a user with a matching Nick on incoming messages
2018-09-12 22:30:14 +02:00
Wim
330ddb6a30
Fix panic by using matterclient calls in the right place. Related to cb7278eb
(mattermost). Closes #491
2018-08-30 23:04:50 +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
d7c3570ba3
Check nickname on kick (irc). Closes #488
2018-08-27 21:20:41 +02:00
Wim
b51fdbce9f
Add caching to fix issue with slack API changes (slack). #481
2018-08-18 00:12:05 +02:00
Wim
351b423e15
Add a bit more debugging (irc). #482
2018-08-16 23:02:28 +02:00
Wim
7690be1647
Fix slack file/image downloads after api changes (slack)
2018-08-10 00:39:07 +02:00
Wim
7f3cbcedc0
Use own forks for logrus-prefixed-formatter and discordgo
2018-08-06 21:11:13 +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
2597c9bfac
Clip too long messages sent to discord (discord). Closes #440
2018-07-22 00:28:17 +02:00
Wim
93307b57aa
Skip empty messages being sent with the webhook (discord). #469
2018-07-21 23:19:11 +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
Wim
fa0c4025f7
Fix avatar uploads to work with MediaDownloadPath. Closes #454
2018-07-11 23:44:29 +02:00
John
2d2d185200
Stop numbers being stripped after non-color control codes (irc) ( #465 )
...
Currently numbers are stripped not just after the color control code (\x03) but also after other formatting such as bold (\x02) and italic (\x1D), which is both unnecessary and leads to missing text from irc. This fixes that by only stripping numbers after the color control code.
2018-07-11 22:50:49 +02:00
Wim
cb7278eb50
Use nickname instead of username if defined (mattermost). Closes #452
2018-07-03 22:41:09 +02:00
Wim
ed062e0ce5
Add a space before url in file uploads (discord). Closes #461
2018-06-29 22:35:29 +02:00
Wim
a69ef8402b
Fix previous commit
2018-06-28 21:19:02 +02:00
Wim
8779f67d2d
Allow join-leave and topic changes to webhook (discord)
2018-06-28 21:14:31 +02:00
Wim
e4b72136b8
Fix possible panic. #448
2018-06-19 22:53:45 +02:00
Wim
221a63d980
Fix build (telegram)
2018-06-18 23:49:28 +02:00
Wim
d02eda147c
Add support for MessageFormat=htmlnick (telegram). #444
2018-06-18 23:38:52 +02:00
Bruno Bierbaumer
6628a47f23
Add channel password support for XMPP ( #451 )
2018-06-18 22:55:45 +02:00
Wim
d2c02be3a0
Handle slack attachments sent to mattermost. Closes #447
2018-06-16 00:11:15 +02:00
Maxim
594492fbdd
Add Title from attachment slack message ( #446 )
2018-06-13 21:58:51 +02:00
Wim
bd9ea7a88d
Add MediaDownloadBlacklist option. Closes #442
2018-06-09 14:35:02 +02:00
Liam Stanley
51327a4056
Reconnect on quit. (irc) See #431 ( #445 )
...
* potential fixes for #431
* go: fix formatting/gofmt/goreturns
2018-06-09 12:47:40 +02:00