Fix file check

This commit is contained in:
SileNce5k 2025-06-21 13:54:45 +02:00
parent 27fc1c55bf
commit 2073a46715
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -46,7 +46,7 @@ module.exports = {
let files = fs.readdirSync(downloadsDir);
if(files < 1) {
if(files.length < 1) {
this.cleanUp(downloadsDir);
originalMessage.edit("Something went wrong when downloading the video.")
return;