diff --git a/commands/fun/ytp.js b/commands/fun/ytp.js index cef9218..22a16b8 100644 --- a/commands/fun/ytp.js +++ b/commands/fun/ytp.js @@ -54,7 +54,7 @@ class ytpCommand extends Command { } } - let loadingmsg = await message.channel.send('Processing, this can take a long time '); + let loadingmsg = await message.channel.send('Processing, this can take a **long** time '); // Read userVid folder and only take .mp4 let asset = []; @@ -96,7 +96,10 @@ class ytpCommand extends Command { new YTPGenerator().configurateAndGo(options) .then(() => { loadingmsg.delete(); - return message.reply('Here is your YTP!', {files: [`${os.tmpdir()}/${message.id}_YTP.mp4`]}); + return message.reply('Here is your YTP!', {files: [`${os.tmpdir()}/${message.id}_YTP.mp4`]}) + .catch(() => { + return message.channel.send('Whoops, look like the vid might be too big for discord, my bad, please try again'); + }); }) .catch(() => { loadingmsg.delete();