X / Social Integration
Listening Engine
client.stream('statuses/filter', { track: '@kaizo' }, function(tweet) {
const postContent = tweet.text;
const handle = tweet.user.screen_name;
const response = generateReply(postContent);
client.post('statuses/update', {
status: `@${handle} ${response}`,
in_reply_to_status_id: tweet.id_str
});
});Last updated