5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 05:50:28 +00:00
matterbridge/bridge
Wim 7a24de15e4
Add tengo support to RemoteNickFormat (#793)
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 #698 2019-01-31 17:06:36 +01:00
config Add tengo support to RemoteNickFormat (#793) 2019-04-08 20:58:21 +02:00
discord Do not relay any bot messages (discord) (#743) 2019-02-28 12:59:52 +01:00
gitter Fix golint linter issues and enable it in CI (#593) 2018-11-15 20:43:43 +01:00
helper Trim <p> and </p> tags (matrix). Closes #686 (#753) 2019-03-03 00:29:29 +01:00
irc Revert fix for #722. Closes #781 2019-04-06 23:12:48 +02:00
matrix Detect html nicks in RemoteNickFormat (matrix). Fixes #696 (#719) 2019-02-17 21:48:32 +01:00
mattermost Add support for mattermost threading (#627) 2019-01-09 21:50:03 +01:00
rocketchat Look up #channel too (rocketchat). Fix #773 (#775) 2019-03-24 20:15:15 +01:00
slack Ignore message_replied and hidden messages (slack). Fixes #709 (#779) 2019-03-27 22:54:18 +01:00
sshchat Make all loggers derive from non-default instance (#728) 2019-02-23 22:51:27 +01:00
steam Refactor steam bridge (#630) 2018-12-07 23:48:24 +01:00
telegram Handle nil message (telegram). Fixes #777 2019-04-05 00:04:08 +02:00
whatsapp Use whatsapp forks (#750) 2019-03-02 13:04:28 +01:00
xmpp Do not send topic changes on connect (xmpp). Fixes #732 (#733) 2019-02-23 23:03:21 +01:00
zulip Need to specify /topic:mytopic for channel configuration (zulip). (#751) 2019-03-02 20:31:38 +01:00
bridge.go Make all loggers derive from non-default instance (#728) 2019-02-23 22:51:27 +01:00