Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

Browsing tree for branch master, showing 11 entries

TypeFileLast CommitAuthorCommit Date (UTC)Size
txt api.yaml Add api.yaml to contrib Wim 23:32, Jan 8 2019 6.02 KiB
txt example.tengo Add scripting (tengo) support for every incoming message (#731) 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 Wim 15:39, Feb 23 2019 126 B
txt inmessage-logger.tengo Create inmessage-logger.tengo (#1688) (#1747) jan Anja 22:31, Mar 11 2022 421 B
txt matterbridge.openrc Add OpenRC service file (#1746) jan Anja 21:24, Feb 20 2022 513 B
txt matterbridge.service Add systemd service file (#291) Supersedes #176. heinrich5991 19:42, Nov 3 2017 207 B
txt mumble-autolink.tengo Create mumble-autolink.tengo (#2029) mvoolt 21:00, Apr 3 2023 244 B
txt outmessage-discordemoji.tengo Create outmessage-discordemoji.tengo (#979) c0ncord2 23:00, Jan 29 2020 428 B
txt outmessage-irccolornick.tengo Add tengo example for nick color filter. See #881 Wim 18:01, Sep 7 2019 549 B
txt outmessage-irccolors.tengo 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. Wim 16:27, Apr 19 2019 256 B
txt remotenickformat-zerowidth.tengo Add remotenickformat-zerowidth.tengo to contrib (#799) Qais Patankar 21:42, Apr 14 2019 461 B
txt remotenickformat.tengo 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" Wim 18:58, Apr 8 2019 346 B