From 412ab9e10b36cb40b173dc84083236bda4ef15c9 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Sun, 15 Jan 2023 20:45:02 +0300 Subject: [PATCH] Goofy ahh js --- main.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/main.js b/main.js index 782466e..c7f85de 100644 --- a/main.js +++ b/main.js @@ -26,9 +26,9 @@ let stream = tClient.stream("statuses/filter", { follow: config.user_id }); console.log(`Fetching tweets from id '${config.user_id}'.`); -stream.on("connected", _ => { - console.log("Successfully connected to Twitter!"); -}); +stream.on("connected", () => + console.log("Successfully connected to Twitter!"); +); stream.on("tweet", twt => { if(twt.retweeted_status || twt.in_reply_to_status_id || twt.is_quote_status) return; @@ -37,14 +37,14 @@ stream.on("tweet", twt => { wClient.send(`${config.webhook_message} ${twitterLink}`); }); -stream.on("disconnect", _ => { - console.log("Disconnected from twitter!"); -}); +stream.on("disconnect", () => + console.log("Disconnected from twitter!"); +); -stream.on("reconnect", function (_, _, _) => { +stream.on("reconnect", () => console.log("Reconnecting to Twitter!"); -}); +); -process.on("uncaughtException", err => { +process.on("uncaughtException", err => console.log(`Something (bad) happened: ${err}`); -}); +);