5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-19 15:49:36 +00:00
matterbridge/bridge
Wim 2d277a15f5
Add scripting (tengo) support for every outgoing message (#806)
Adds a new key OutMessage under [tengo] table, which specifies the location of the script that
will be invoked on each message being sent to a bridge and can be used to modify the Username
and the Text of that message.

The script will have the following global variables:
read-only:
inAccount, inProtocol, inChannel, inGateway
outAccount, outProtocol, outChannel, outGateway

read-write:
msgText, msgUsername

The script is reloaded on every message, so you can modify the script on the fly.

The default script in https://github.com/42wim/matterbridge/tree/master/internal/tengo/outmessage.tengo
is compiled in and will be executed if no script is specified.
2019-04-19 18:27:31 +02:00
..
api Update vendor, move to labstack/echo/v4 Fixes #698 2019-01-31 17:06:36 +01:00
config Add scripting (tengo) support for every outgoing message (#806) 2019-04-19 18:27:31 +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 Add scripting (tengo) support for every outgoing message (#806) 2019-04-19 18:27:31 +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 Add useraction support (rocketchat). Closes #772 (#794) 2019-04-08 23:30:22 +02: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