From 828232b94e5a626a70399c72149fa357a37822d9 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 27 Oct 2019 22:42:07 +0100 Subject: [PATCH] Emphasis on long times --- commands/fun/ytp.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/fun/ytp.js b/commands/fun/ytp.js index cef92184..22a16b81 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();