You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constparameters={follow: `${config.TWITTER_USER_ID}`,// The ID of the user it should follow, In this bots case its @FarCryGame};conststream=Tclient.stream("statuses/filter",parameters).on("start",response=>console.log("Starts checking for tweets")).on("data",tweet=>{constTwitterEmbed=newMessageEmbed().setColor("ORANGE").setTitle(`${tweet.user.name}`).setDescription(`${tweet.text}`).setURL(`https://www.twitter.com/Timtendo12/Status/`+`${tweet.id}`).setAuthor(`${tweet.user.name}, posted a new tweet!`,'https://pbs.twimg.com/profile_images/1286368132487995392/p-CyXKSj_400x400.jpg','https://www.twitter.com/Timtendo12');client.channels.cache.get(`${config.TWITTER_CHANNEL_ID}`).send({embeds: [TwitterEmbed]})})
Currently I have this code, It works. However, when someone else retweets, shares etc etc any tweet from the one defined in the following parameters it also outputs them retweeting them. How do you filter this so it will only output when the defined follower posts a tweet?
The text was updated successfully, but these errors were encountered:
Currently I have this code, It works. However, when someone else retweets, shares etc etc any tweet from the one defined in the following parameters it also outputs them retweeting them. How do you filter this so it will only output when the defined follower posts a tweet?
The text was updated successfully, but these errors were encountered: