Skylar-Tech / node-red-contrib-matrix-chat

Matrix chat server support for Node-RED
GNU General Public License v3.0
31 stars 10 forks source link

0.2.1 #23

Closed skylord123 closed 2 years ago

skylord123 commented 2 years ago

Another awesome update!

In this release we add support for accessing the raw matrix client object globally. This way you can do whatever you want with the matrix client from within a function node.

You need to enable this from within your client configuration. Once enabled you can use the following global variables within a function node for each client you have configured:

let matrixClient = global.get("matrixClient['@bot:example.com']"),
    matrixOnline = global.get("matrixClientOnline['@bot:example.com']");

This way you are no longed limited by what nodes we have created. If you do think we need to add a node for something please do let us know.