mirror of
https://github.com/RGBCube/TwitterDiscordWebhook
synced 2025-07-27 13:07:45 +00:00
fixes to retweets
This commit is contained in:
parent
87950c5d59
commit
a47e8a1f34
1 changed files with 1 additions and 0 deletions
1
main.js
1
main.js
|
@ -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}`)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue