1
0
Fork 0

Fixed youtube vid

Commando
loicbersier 6 years ago
parent c995bff183
commit 5def6fce12

@ -24,8 +24,10 @@ module.exports = class youtubeCommand extends Command {
.pipe(fs.createWriteStream('video.mp4')) .pipe(fs.createWriteStream('video.mp4'))
setTimeout(function(){ setTimeout(function(){
message.channel.sendFile("./video.mp4") message.channel.sendFile("./video.mp4")
.catch(error => {
message.say('Video too long')
})
}, 2000) }, 2000)
process.on('unhandledRejection',error => message.say('Video too long'));
} }
} }
Loading…
Cancel
Save