Merge branch 'master' of https://gitlab.com/loicbersier/discordbot
This commit is contained in:
commit
2385da72a8
1 changed files with 3 additions and 1 deletions
|
@ -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');
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue