From 90c2f960440ef4d607302a6c516ec8be46379393 Mon Sep 17 00:00:00 2001 From: Relitrix <46451374+relitrix@users.noreply.github.com> Date: Sun, 1 Sep 2024 19:26:35 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20=D0=9E=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D0=B5=D0=BC=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA?= =?UTF-8?q?=D1=83=20=D0=BD=D0=B0=20=D0=B2=D0=B8=D0=B4=D0=B5=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jobs/commentsWave.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/jobs/commentsWave.js b/src/jobs/commentsWave.js index 4a5bbcf..2020251 100644 --- a/src/jobs/commentsWave.js +++ b/src/jobs/commentsWave.js @@ -6,9 +6,9 @@ module.exports = async () => { const client = process.disClient const { GuildSchema } = process.mongo async function makeEmbeds(newComms, creator = {}) { - const videobasicInfos = new Map() + // const videobasicInfos = new Map() const promises = newComms.map(async comm => { - let basicInfo = null + /* let basicInfo = null try { if (comm.vidId) { basicInfo = videobasicInfos.get(comm.vidId) ?? await process.youtube.getBasicInfo(comm.vidId) @@ -17,15 +17,15 @@ module.exports = async () => { } catch (e) { console.log("Failed to get basicInfo") console.error(e) - } + } */ return buildEmbed({ - title: basicInfo?.basic_info?.title, + title: 'Link to video', authorLink: comm.authorLink, authorName: comm.authorName, authorPic: comm.authorPic, content: comm.content, date: comm.date, - vidLink: basicInfo ? `https://youtube.com/watch?v=${comm.vidId}&lc=${comm.id}` : null, + vidLink: `https://youtube.com/watch?v=${comm.vidId}&lc=${comm.id}`, vidThumbnail: basicInfo?.basic_info?.thumbnail?.[0]?.url, creator: creator }) From cc963a5a06848fced4443bbb6cbb01e2d6829758 Mon Sep 17 00:00:00 2001 From: Relitrix <46451374+relitrix@users.noreply.github.com> Date: Sun, 1 Sep 2024 19:27:44 +0300 Subject: [PATCH 2/2] 1.0.3-d --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2e47c22..af3fa00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "trackcombot", - "version": "1.0.3-c", + "version": "1.0.3-d", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "trackcombot", - "version": "1.0.3-c", + "version": "1.0.3-d", "license": "UNLICENSED", "dependencies": { "@googleapis/youtube": "^14.0.0", diff --git a/package.json b/package.json index f454802..3ffc47d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "trackcombot", - "version": "1.0.3-c", + "version": "1.0.3-d", "main": "src/index.js", "author": "relitrix", "license": "UNLICENSED",