Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
relitrix committed Sep 1, 2024
2 parents 9ef3988 + cc963a5 commit eabb5a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trackcombot",
"version": "1.0.3-c",
"version": "1.0.3-d",
"main": "src/index.js",
"author": "relitrix",
"license": "UNLICENSED",
Expand Down
10 changes: 5 additions & 5 deletions src/jobs/commentsWave.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
})
Expand Down

0 comments on commit eabb5a6

Please sign in to comment.