1
Fork 0
mirror of https://github.com/RGBCube/TwitterDiscordWebhook synced 2025-07-27 04:57:44 +00:00

fixes to retweets

This commit is contained in:
stovven 2022-02-21 11:52:16 -05:00
parent 87950c5d59
commit a47e8a1f34

View file

@ -25,6 +25,7 @@ var stream = tClient.stream('statuses/filter', { follow: `${config.user_id}` })
console.log(`Fetching tweets from id: ${config.user_id}`)
stream.on('tweet', function (tweet) {
if(tweet.retweeted_status) return
let twitterLink = `https://twitter.com/${tweet.user.screen_name}/status/${tweet.id_str}`
wClient.send(`${config.webhook_message} ${twitterLink}`)
})