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", 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 })