Here's a really basic way of doing it with steemjs and nodejs.
var steem = require("steem")
steem.api.streamTransactions("irreversible", function(err, result) {
var op = result.operations[0]
if (op[0] == "comment"){
console.log(op)
if (op[1].body.includes("STUFFYOUARELOOKINGFOR")){
//DOSTUFF
}
}
})
Here's a really basic way of doing it with steemjs and nodejs.
var steem = require("steem") steem.api.streamTransactions("irreversible", function(err, result) { var op = result.operations[0] if (op[0] == "comment"){ console.log(op) if (op[1].body.includes("STUFFYOUARELOOKINGFOR")){ //DOSTUFF } } })
streamTheChain() if(transaction type == post && the !command is in it){ DoWhatYouMust() }
That was cool of you!
!dramatoken
You've got
DRAMA
!To view or trade
DRAMA
go to steem-engine.com.Hey, if I can help, I'll try.
It's a good thing.