From 8546fb30f5a55b5e59fa49227ef39df270e548f8 Mon Sep 17 00:00:00 2001 From: Supositware Date: Sun, 4 Jun 2023 19:03:57 +0200 Subject: [PATCH] removed comments and console.log --- commands/fun/tweet.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/commands/fun/tweet.js b/commands/fun/tweet.js index 78783381..81822b65 100644 --- a/commands/fun/tweet.js +++ b/commands/fun/tweet.js @@ -142,18 +142,6 @@ export default { const image = await userClient.v1.uploadMedia(`${os.tmpdir()}/${attachment.name}`); Tweet(image); - /* - T.post('media/upload', { media_data: b64Image }, function(err, data) { - if (err) { - console.log('OH NO AN ERROR!!!!!!!'); - console.error(err); - return interaction.editReply({ content: 'OH NO!!! AN ERROR HAS occurred!!! please hold on while i find what\'s causing this issue! ' }); - } - else { - Tweet(data); - } - }); - */ } else { await interaction.editReply({ content: 'File type not supported, you can only send jpg/png/gif' }); @@ -171,16 +159,12 @@ export default { } async function Tweet(img) { - console.log(img); let options = null; if (img) { options = { media: { media_ids: new Array(img) } }; } const tweeted = await userClient.v2.tweet(tweet, options); - console.log(tweeted); - - const tweetid = tweeted.data.id; const FunnyWords = ['oppaGangnamStyle', '69', '420', 'cum', 'funnyMan', 'GUCCISmartToilet', 'TwitterForClowns', 'fart', 'ok', 'hi', 'howAreYou', 'WhatsNinePlusTen', '21']; const TweetLink = `https://twitter.com/${FunnyWords[Math.floor((Math.random() * FunnyWords.length))]}/status/${tweetid}`;