matterbridge/bridge
Wim 7a24de15e4
Add tengo support to RemoteNickFormat ()
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"
2019-04-08 20:58:21 +02:00
..
api Update vendor, move to labstack/echo/v4 Fixes 2019-01-31 17:06:36 +01:00
config Add tengo support to RemoteNickFormat () 2019-04-08 20:58:21 +02:00
discord Do not relay any bot messages (discord) () 2019-02-28 12:59:52 +01:00
gitter Fix golint linter issues and enable it in CI () 2018-11-15 20:43:43 +01:00
helper Trim <p> and </p> tags (matrix). Closes () 2019-03-03 00:29:29 +01:00
irc Revert fix for . Closes 2019-04-06 23:12:48 +02:00
matrix Detect html nicks in RemoteNickFormat (matrix). Fixes () 2019-02-17 21:48:32 +01:00
mattermost Add support for mattermost threading () 2019-01-09 21:50:03 +01:00
rocketchat Look up #channel too (rocketchat). Fix () 2019-03-24 20:15:15 +01:00
slack Ignore message_replied and hidden messages (slack). Fixes () 2019-03-27 22:54:18 +01:00
sshchat Make all loggers derive from non-default instance () 2019-02-23 22:51:27 +01:00
steam Refactor steam bridge () 2018-12-07 23:48:24 +01:00
telegram Handle nil message (telegram). Fixes 2019-04-05 00:04:08 +02:00
whatsapp Use whatsapp forks () 2019-03-02 13:04:28 +01:00
xmpp Do not send topic changes on connect (xmpp). Fixes () 2019-02-23 23:03:21 +01:00
zulip Need to specify /topic:mytopic for channel configuration (zulip). () 2019-03-02 20:31:38 +01:00
bridge.go Make all loggers derive from non-default instance () 2019-02-23 22:51:27 +01:00