From de56815c3cded5cbd13613a9ca01c11901218602 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 18 Apr 2020 18:23:53 +0200 Subject: [PATCH] Show filename option --- commands/fun/ytp.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/fun/ytp.js b/commands/fun/ytp.js index 176ab31..c0ac8a8 100644 --- a/commands/fun/ytp.js +++ b/commands/fun/ytp.js @@ -194,6 +194,7 @@ class ytpCommand extends Command { OUTPUT_FILE: `${os.tmpdir()}/${message.id}_YTP.mp4`, MAX_CLIPS: MAX_CLIPS, transitions: true, + showFileNames: true, effects: { effect_RandomSound: !args.randomSound, effect_RandomSoundMute: !args.randomSoundMute, @@ -213,7 +214,8 @@ class ytpCommand extends Command { .then(() => { loadingmsg.delete(); return message.reply('Here is your YTP!', {files: [`${os.tmpdir()}/${message.id}_YTP.mp4`]}) - .catch(() => { + .catch(err => { + console.error(err); return message.channel.send('Whoops, look like the vid might be too big for discord, my bad, please try again'); }); })