- New react node for reacting to messages

- made input and output nodes more compatible with each other (for relay purposes).
- File/Image input nodes can be combined with a File In node now
- Remove console.log debug lines
- set version to 0.0.3
- send message node updated to handle message formats and types.
- Fixed ignore properties on matrix receive node not saving
- created basic readme
- WIP on node docs
This commit is contained in:
2021-08-16 21:56:53 -06:00
parent 61aa32e8a6
commit cd99955115
16 changed files with 524 additions and 401 deletions
+15
View File
@@ -41,6 +41,21 @@ module.exports = function(RED) {
return;
}
if(msg.content) {
node.server.matrixClient.sendMessage(msg.roomId, msg.content)
.then(function(e) {
node.log("File message sent: " + e);
msg.eventId = e.event_id;
node.send([msg, null]);
})
.catch(function(e){
node.warn("Error sending file message " + e);
msg.error = e;
node.send([null, msg]);
});
return;
}
if(!msg.payload) {
node.error('msg.payload is required');
return;