From afa3e5670378299a8a0d83ee00926d1a3867d023 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 30 Oct 2019 18:08:10 +0100 Subject: [PATCH] remove the check for temp.mp4 as it was not the issue --- commands/fun/ytp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/fun/ytp.js b/commands/fun/ytp.js index 80cf187..de7d5b1 100644 --- a/commands/fun/ytp.js +++ b/commands/fun/ytp.js @@ -99,11 +99,11 @@ class ytpCommand extends Command { mp4.push(file); } }); - // Select random vid depending on the ammount of MAX_CLIPS + // Select random vid depending on the amount of MAX_CLIPS for (let i = 0; i < MAX_CLIPS; i++) { let random = Math.floor(Math.random() * files.length); let vid = `./asset/ytp/userVid/${files[random]}`; - if (files[random].endsWith('mp4') && !files[random].endsWith('temp.mp4')) { + if (files[random].endsWith('mp4')) { if (!asset.includes(vid)) { asset.push(vid); }