added intro
This commit is contained in:
parent
0b388b690e
commit
260391933b
2 changed files with 4 additions and 3 deletions
BIN
asset/ytp/intro.mp4
Normal file
BIN
asset/ytp/intro.mp4
Normal file
Binary file not shown.
|
@ -100,7 +100,7 @@ class ytpCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(message, args) {
|
async exec(message, args) {
|
||||||
let MAX_CLIPS = 20;
|
let MAX_CLIPS = 5;
|
||||||
|
|
||||||
if (args.pool) {
|
if (args.pool) {
|
||||||
let mp4 = [];
|
let mp4 = [];
|
||||||
|
@ -190,6 +190,7 @@ class ytpCommand extends Command {
|
||||||
resources: './asset/ytp/resources/',
|
resources: './asset/ytp/resources/',
|
||||||
temp: os.tmpdir(),
|
temp: os.tmpdir(),
|
||||||
sourceList: asset,
|
sourceList: asset,
|
||||||
|
intro: args.force ? './asset/ytp/intro.mp4' : null,
|
||||||
outro: './asset/ytp/outro.mp4', // Need an outro or it won't work
|
outro: './asset/ytp/outro.mp4', // Need an outro or it won't work
|
||||||
OUTPUT_FILE: `${os.tmpdir()}/${message.id}_YTP.mp4`,
|
OUTPUT_FILE: `${os.tmpdir()}/${message.id}_YTP.mp4`,
|
||||||
MAX_CLIPS: MAX_CLIPS,
|
MAX_CLIPS: MAX_CLIPS,
|
||||||
|
@ -213,7 +214,7 @@ class ytpCommand extends Command {
|
||||||
new YTPGenerator().configurateAndGo(options)
|
new YTPGenerator().configurateAndGo(options)
|
||||||
.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! Remember, it might contains nsfw!', {files: [`${os.tmpdir()}/${message.id}_YTP.mp4`]})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(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