From f41cad0261ef6944a2df45fe320d387ae5790cd1 Mon Sep 17 00:00:00 2001 From: LdvcJcb <33324117+LdvcJcb@users.noreply.github.com> Date: Sat, 21 Jan 2023 18:35:55 +0100 Subject: [PATCH] Update readline instruction in create_tweet.js readline.question --> rl.question (the same for the line below) Signed-off-by: LdvcJcb <33324117+LdvcJcb@users.noreply.github.com> --- Manage-Tweets/create_tweet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Manage-Tweets/create_tweet.js b/Manage-Tweets/create_tweet.js index 64de55a..6195210 100644 --- a/Manage-Tweets/create_tweet.js +++ b/Manage-Tweets/create_tweet.js @@ -40,8 +40,8 @@ const oauth = OAuth({ async function input(prompt) { return new Promise(async (resolve, reject) => { - readline.question(prompt, (out) => { - readline.close(); + rl.question(prompt, (out) => { + rl.close(); resolve(out); }); });