mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
6540439e5f
commit
f74f3402e3
@ -566,7 +566,7 @@ module.exports = function(RED) {
|
||||
node.on("input", function(msg) {
|
||||
if (msg.hasOwnProperty("payload")) {
|
||||
node.status({fill:"blue",shape:"dot",text:"twitter.status.tweeting"});
|
||||
if (msg.payload.slice(0,2) == "D ") {
|
||||
if (msg.payload.slice(0,2).toLowerCase() === "d ") {
|
||||
var dm_user;
|
||||
// direct message syntax: "D user message"
|
||||
var t = msg.payload.match(/D\s+(\S+)\s+(.*)/).slice(1);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-node-twitter",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.3",
|
||||
"description": "A Node-RED node to talk to Twitter",
|
||||
"dependencies": {
|
||||
"twitter-ng": "0.6.2",
|
||||
|
Loading…
Reference in New Issue
Block a user