Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update dependencies and remove old matterclient lib (#2067)HEADmaster | Wim | 2023-08-05 | 5 | -19/+106 |
| | |||||
* | Update dependencies (#1929) | Wim | 2022-11-27 | 2 | -11/+12 |
| | |||||
* | Update dependencies and fix whatsmeow API changes (#1887) | Wim | 2022-09-05 | 1 | -19/+5 |
| | | | | | * Update dependencies * Fix whatsmau API changes | ||||
* | Update dependencies and go1.18 (#1873) | Wim | 2022-08-13 | 2 | -2/+9 |
| | | | | | * Update dependencies and go1.18 * Exclude unnecessary linters and update build to go1.18 | ||||
* | Update dependencies (#1851) | Wim | 2022-06-25 | 3 | -77/+61 |
| | |||||
* | Update dependencies and vendor (#1761) | Wim | 2022-03-12 | 4 | -10/+5 |
| | |||||
* | Update dependencies/vendor (#1659) | Wim | 2021-12-12 | 6 | -14/+86 |
| | |||||
* | Update dependencies (#1610) | Wim | 2021-10-17 | 2 | -3/+0 |
| | | | | | * Update dependencies * Update module to go 1.17 | ||||
* | Update vendor (#1560) | Wim | 2021-07-31 | 2 | -22/+67 |
| | |||||
* | Update vendor (#1414) | Wim | 2021-03-20 | 2 | -0/+72 |
| | |||||
* | Update vendor (#1257) | Wim | 2020-10-11 | 3 | -20/+42 |
| | |||||
* | Update dependencies for 1.18.0 release (#1175) | Wim | 2020-07-18 | 6 | -15/+84 |
| | |||||
* | Update dependencies / vendor (#1146) | Wim | 2020-05-24 | 6 | -34/+264 |
| | |||||
* | Update vendor d5/tengo (#1066) | Wim | 2020-03-28 | 4 | -7/+120 |
| | |||||
* | Update to tengo v2 (#976) | Wim | 2020-01-09 | 187 | -11809/+11390 |
| | |||||
* | Update vendor (#932) | Wim | 2019-10-27 | 7 | -0/+92 |
| | | | | | | * Update vendor * Fix godiscord api change | ||||
* | Update dependencies (#886) | Wim | 2019-09-07 | 3 | -56/+6 |
| | |||||
* | Update vendor (#852) | Wim | 2019-06-16 | 18 | -48/+1555 |
| | |||||
* | Update tengo vendor and load the stdlib. Fixes #789 (#792) | Wim | 2019-04-06 | 59 | -1288/+7000 |
| | |||||
* | Update vendor d5/tengo | Wim | 2019-03-05 | 35 | -4352/+618 |
| | |||||
* | Add scripting (tengo) support for every incoming message (#731) | Wim | 2019-02-23 | 137 | -0/+14114 |
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 |