From bac10bdc2a441a756a1f03e43d6a31f24c085c69 Mon Sep 17 00:00:00 2001 From: chari03 <90479203+chari03@users.noreply.github.com> Date: Mon, 1 Nov 2021 16:20:21 -0400 Subject: [PATCH] Update bot.js --- bot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.js b/bot.js index cd3ebfc..110d63c 100644 --- a/bot.js +++ b/bot.js @@ -14,7 +14,8 @@ function retweetLatest() { console.log(error, data); // If our search request to the server had no errors... if (!error) { - // ...then we grab the ID of the tweet we want to retweet..., the tweet in which its replied to + // ...then we grab the ID of the tweet we want to retweet..., + var mentionedId = data.statuses[0].id_str; var retweetId = data.statuses[0].in_reply_to_status_id; // ...and then we tell Twitter we want to retweet it! T.post('statuses/retweet/' + retweetId, { }, function (error, response) {