summaryrefslogtreecommitdiffstats
path: root/bridge/config/config.go
Commit message (Collapse)AuthorAgeFilesLines
* Add tengo support to RemoteNickFormat (#793)Wim2019-04-081-0/+6
| | | | | | | | | | | | | | | | | | | This commit add support for using the result of a tengo script in RemoteNickFormat using {TENGO} Also adds a new toml table [tengo] with key RemoteNickFormat and value location of the script. This also moves the TengoModifyMessage from [general] to Message in [tengo] Documentation: RemoteNickFormat allows you to specify the location of a tengo (https://github.com/d5/tengo/) script. The script will have the following global variables: to modify: result to read: channel, bridge, gateway, protocol, nick The result will be set in {TENGO} in the RemoteNickFormat key of every bridge where {TENGO} is specified The script is reloaded on every message, so you can modify the script on the fly. Example script can be found in https://github.com/42wim/matterbridge/tree/master/contrib/remotenickformat.tengo [tengo] RemoteNickFormat="remotenickformat.tengo"
* Add MediaConvertWebPToPNG option (telegram). (#741)Wim2019-02-271-0/+1
| | | | | | | | * Add MediaConvertWebPToPNG option (telegram). When enabled matterbridge will convert .webp files to .png files before uploading them to the mediaserver of the other bridges. Fixes #398
* Make all loggers derive from non-default instance (#728)Wim2019-02-231-45/+37
|
* Add scripting (tengo) support for every incoming message (#731)Wim2019-02-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | TengoModifyMessage allows you to specify the location of a tengo (https://github.com/d5/tengo/) script. This script will receive every incoming message and can be used to modify the Username and the Text of that message. The script will have the following global variables: to modify: msgUsername and msgText to read: msgChannel and msgAccount The script is reloaded on every message, so you can modify the script on the fly. Example script can be found in https://github.com/42wim/matterbridge/tree/master/gateway/bench.tengo and https://github.com/42wim/matterbridge/tree/master/contrib/example.tengo The example below will check if the text contains blah and if so, it'll replace the text and the username of that message. text := import("text") if text.re_match("blah",msgText) { msgText="replaced by this" msgUsername="fakeuser" } More information about tengo on: https://github.com/d5/tengo/blob/master/docs/tutorial.md and https://github.com/d5/tengo/blob/master/docs/stdlib.md
* Allow sending discriminator with Discord username (#726)Declan Hoare2019-02-221-0/+1
|
* Add initial WhatsApp support (#711)Krzysiek Madejski2019-02-211-0/+1
|
* Allow zulip bridge to specify topic per channel. Closes #701 (#723)Wim2019-02-171-0/+1
|
* Add initial support for getting ChannelMember info of all bridges (#678)Wim2019-01-181-10/+21
| | | | | | | | | | | | | | * 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
* Remove unused key (config)Wim2019-01-041-1/+0
|
* Use logrus imports instead of log (#662)Duco van Amstel2018-12-261-7/+7
|
* Sync channel topics between Slack bridges (#585)Patrick Connolly2018-11-261-0/+1
| | | Added logic to allow for configurable synchronisation of topics and purposes of channels between Slack bridges.
* Add option to send RAW commands after connection (irc). Fixes #490 (#604)Wim2018-11-251-0/+1
|
* Add option to ignore failing bridge on start. Fixes #455 (#603)Wim2018-11-251-0/+1
|
* Fix golint linter issues and enable it in CI (#593)Duco van Amstel2018-11-151-19/+19
|
* Fix IRC line splitting. Closes #584 (#587)Duco van Amstel2018-11-141-3/+0
|
* Make config.Config more unit-test friendly (#586)Duco van Amstel2018-11-131-24/+88
|
* Add new Slack connection and forked legacy Slack bridge (#582)Duco van Amstel2018-11-131-0/+1
|
* Add ability to show when user is typing across Slack bridges (#559)Patrick Connolly2018-11-081-0/+2
|
* Clean up config loading. (#561)Patrick Connolly2018-11-071-22/+18
|
* Preserve threading between Slack instances (#529)Patrick Connolly2018-11-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | * 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.
* Remove hyphens when auto-loading envvars from viper config (#545)Patrick Connolly2018-11-031-1/+1
| | | | | | * When auto-loading envvars from toml keys, remove hyphens. See: https://unix.stackexchange.com/questions/23659/can-shell-variable-include-character
* Respond with message on connect (api) (#550)NikkyAI2018-11-021-0/+1
| | | fix #549
* Use own forks for logrus-prefixed-formatter and discordgoWim2018-08-061-1/+1
|
* Add channel password support for XMPP (#451)Bruno Bierbaumer2018-06-181-1/+1
|
* Add MediaDownloadBlacklist option. Closes #442Wim2018-06-091-1/+2
|
* Add config option MediaDownloadPath (#443)Remi Reuvekamp2018-06-081-4/+6
| | | | | | | | | | | | | | * 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.
* [WIP] Colorize username sent to IRC using its crc32 IEEE checksum (#423)Yuval Langer2018-05-111-0/+1
| | | | | | | | * Colorize username sent to IRC using its crc32 IEEE checksum * Add `ColorNicks` configuration variable * Add `ColorNicks` setting
* Add QuoteFormat option (telegram). Closes #413Wim2018-05-111-0/+1
|
* Add initial zulip supportWim2018-05-071-0/+2
|
* Add support for reloading all settings automatically after changing config ↵Wim2018-05-011-0/+11
| | | | except connection and gateway configuration. Closes #373
* Fix regression in ReplaceMessages and ReplaceNicks. Closes #407Wim2018-04-211-4/+11
|
* Add QuoteDisable option (telegram). Closes #399Wim2018-04-171-0/+1
|
* Add support for NoSendJoinPart. Closes #382Wim2018-03-061-0/+1
|
* Fix tests and make megacheck happyWim2018-03-051-0/+18
|
* Use viper (github.com/spf13/viper) for configurationWim2018-03-041-84/+60
|
* Add environment override backWim2018-02-271-1/+3
|
* Refactor using factoryWim2018-02-271-2/+3
|
* Add DebugLevel option (irc)Wim2018-02-221-0/+1
|
* Add label support in RemoteNickFormatWim2018-02-201-0/+1
|
* Download (and upload) avatar images from mattermost and telegram when ↵Wim2018-02-201-0/+1
| | | | | | | | | | | | | | mediaserver is configured. Closes #362 An extra avatarMap (cache) is created for mattermost and telegram. If MediaServerUpload is configured, the avatar images of users are downloaded the first time a user sends a message. If this download succeeds a message with EVENT_AVATAR_DOWNLOAD is sent to the originating protocol. This message also contains a SHA field (in msg.Extra["file"]), if this is not empty, the sha will be added to the avatarMap. (so we now have a userid-sha cache) Next time this user sends a message, the MediaServerUpload/sha/userid.png URL will be used as the avatar field.
* Add SHA to FileInfoWim2018-02-151-0/+1
|
* Add avator to fileinfoWim2018-02-141-0/+1
|
* Send chat notification if media is too big to be re-uploaded to MediaServer. ↵Wim2018-02-031-6/+8
| | | | See #359
* Add ShowTopicChange option. Allow/disable topic change messages (currently ↵Wim2018-02-021-0/+2
| | | | only from slack). Closes #353
* Print only debug messages when specified (xmpp). Closes #345Wim2018-01-261-0/+1
|
* Add RejoinDelay option. Delay to rejoin after channel kick (irc). Closes #322Wim2017-12-231-0/+1
|
* Allow specifying maximum download size of media using MediaDownloadSize ↵Wim2017-12-191-0/+3
| | | | (slack,telegram,matrix)
* Refactor and add MediaDownloadSize to GeneralWim2017-12-191-0/+8
|
* Add quick & dirty sshchat support (https://github.com/shazow/ssh-chat)Wim2017-12-031-0/+1
|
* Add MessageSplit option to split messages on MessageLength (irc). Closes #281Wim2017-11-241-2/+3
|