Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | move stripCustomoji logic to default Tengo script (#973) | c0ncord2 | 2020-01-09 | 1 | -1/+7 |
| | | | | | | | | | | | | * move stripCustomoji logic to default Tengo script Removing the image ID from the message (without any possibility of recovering it later) is a loss of valuable data that prevents users from giving support to custom emoji via Tengo scripts. * bugfix - do send colors to other irc bridges "if we're not sending to an irc bridge we strip the IRC colors" Co-authored-by: c0ncord <59654954+c0ncord@users.noreply.github.com> | ||||
* | Add scripting (tengo) support for every outgoing message (#806) | Wim | 2019-04-19 | 2 | -0/+307 |
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. |