f2703979a4
Clean up config loading. ( #561 )
2018-11-07 22:32:12 +01:00
d2a1dc792f
Refactor and clean-up handlers. (slack) ( #533 )
2018-11-07 21:35:59 +01:00
0e2522279e
Clean up various stuff ( #508 )
...
* various cleanups
2018-11-07 20:36:50 +01:00
a1bf37e457
Do not join Slack channel without API access (slack) ( #563 )
2018-11-07 17:25:00 +01:00
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
5666821e7b
Add a health endpoint to API ( #554 )
2018-11-07 09:11:59 +01:00
5132d8f097
Stop setting API ring buffer capacity if not specified. ( #552 )
2018-11-05 21:53:51 +01:00
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
d058be25ad
Respond with message on connect (api) ( #550 )
...
fix #549
2018-11-02 16:35:13 +01:00
1269be1d04
Prevent Slack API rate-limit overflow ( #539 )
2018-11-01 21:28:22 +01:00
e2b50d6194
Add better support for multiperson DM (mattermost)
2018-10-27 22:02:25 +02:00
107969c09a
Split up cookie token and personal token (mattermost). Fixes #530 ( #540 )
2018-10-26 16:47:56 +02:00
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
f2cdda7278
Update Blackfriday dependency ( closes #522 ) ( #532 )
...
- Fixup Telegram bridge implementation to support updated dependency.
2018-10-22 19:48:29 +02:00
6911458d15
Clean up message send logic (slack). ( #531 )
2018-10-22 19:43:57 +02:00
6238effdc2
Clean up user and channel information management (slack) ( #521 )
2018-10-16 20:34:09 +02:00
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
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
54adb0509e
Fix mentions cuttíng off all text after the mention (discord) ( #506 )
2018-09-29 20:02:59 +02:00
bd3a3b6eaf
Let webhook also replace mentions (discord). Closes #502
2018-09-22 22:15:19 +02:00
296428d53e
Fix Discord mentions by populating the nickMemberMap at connect ( #498 )
2018-09-17 21:25:06 +02:00
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
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
52dbd702ad
Get up to 1000 channels and private/mp/im channels (slack). Related to #489
2018-08-28 22:33:07 +02:00
d7c3570ba3
Check nickname on kick (irc). Closes #488
2018-08-27 21:20:41 +02:00
b51fdbce9f
Add caching to fix issue with slack API changes (slack). #481
2018-08-18 00:12:05 +02:00
351b423e15
Add a bit more debugging (irc). #482
2018-08-16 23:02:28 +02:00
7690be1647
Fix slack file/image downloads after api changes (slack)
2018-08-10 00:39:07 +02:00
7f3cbcedc0
Use own forks for logrus-prefixed-formatter and discordgo
2018-08-06 21:11:13 +02:00
d71850cef6
Use UserID to look for avatar instead of username (slack). Closes #472
2018-08-06 16:44:15 +02:00
2597c9bfac
Clip too long messages sent to discord (discord). Closes #440
2018-07-22 00:28:17 +02:00
93307b57aa
Skip empty messages being sent with the webhook (discord). #469
2018-07-21 23:19:11 +02:00
618953c865
Remove ununsed function (slack)
2018-07-13 23:28:23 +02:00
e04dd78624
Add support for slack channels by ID. Closes #436
2018-07-13 23:23:11 +02:00
fa0c4025f7
Fix avatar uploads to work with MediaDownloadPath. Closes #454
2018-07-11 23:44:29 +02:00
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
cb7278eb50
Use nickname instead of username if defined (mattermost). Closes #452
2018-07-03 22:41:09 +02:00
ed062e0ce5
Add a space before url in file uploads (discord). Closes #461
2018-06-29 22:35:29 +02:00
a69ef8402b
Fix previous commit
2018-06-28 21:19:02 +02:00
8779f67d2d
Allow join-leave and topic changes to webhook (discord)
2018-06-28 21:14:31 +02:00
e4b72136b8
Fix possible panic. #448
2018-06-19 22:53:45 +02:00
221a63d980
Fix build (telegram)
2018-06-18 23:49:28 +02:00
d02eda147c
Add support for MessageFormat=htmlnick (telegram). #444
2018-06-18 23:38:52 +02:00
6628a47f23
Add channel password support for XMPP ( #451 )
2018-06-18 22:55:45 +02:00
d2c02be3a0
Handle slack attachments sent to mattermost. Closes #447
2018-06-16 00:11:15 +02:00
594492fbdd
Add Title from attachment slack message ( #446 )
2018-06-13 21:58:51 +02:00
bd9ea7a88d
Add MediaDownloadBlacklist option. Closes #442
2018-06-09 14:35:02 +02:00
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
33bd60528b
Add config option MediaDownloadPath ( #443 )
...
* Add config option MediaUploadPath
MediaDownloadPath can be used instead of MediaServerUpload, for when your
webserver is on the same system as matterbridge and matterbridge has
write access to the serve dir.
* Limit length of hash in MediaServer urls to 8chars
Full SHA256 is unnecessary for uniqueness.
Also; if a file has the same first 8 charachters of the SHA256 hash,
it's still not a problem, as long as the filename is not the same.
2018-06-08 22:30:35 +02:00
e307069d62
Ignore messages from ourself. (sshchat) Closes #439
2018-06-06 00:51:42 +02:00