forked from Supositware/Haha-Yes
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`,
|
||||
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');
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue