Show filename option

This commit is contained in:
loicbersier 2020-04-18 18:23:53 +02:00
parent 2b93b03816
commit de56815c3c

View file

@ -194,6 +194,7 @@ class ytpCommand extends Command {
OUTPUT_FILE: `${os.tmpdir()}/${message.id}_YTP.mp4`, OUTPUT_FILE: `${os.tmpdir()}/${message.id}_YTP.mp4`,
MAX_CLIPS: MAX_CLIPS, MAX_CLIPS: MAX_CLIPS,
transitions: true, transitions: true,
showFileNames: true,
effects: { effects: {
effect_RandomSound: !args.randomSound, effect_RandomSound: !args.randomSound,
effect_RandomSoundMute: !args.randomSoundMute, effect_RandomSoundMute: !args.randomSoundMute,
@ -213,7 +214,8 @@ class ytpCommand extends Command {
.then(() => { .then(() => {
loadingmsg.delete(); 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(() => { .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'); return message.channel.send('Whoops, look like the vid might be too big for discord, my bad, please try again');
}); });
}) })