Add --pool to show how many vid there is
This commit is contained in:
parent
6277ea41bf
commit
d7bf82ff07
1 changed files with 9 additions and 0 deletions
|
@ -16,6 +16,11 @@ class ytpCommand extends Command {
|
||||||
match: 'flag',
|
match: 'flag',
|
||||||
flag: ['--add']
|
flag: ['--add']
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'pool',
|
||||||
|
match: 'flag',
|
||||||
|
flag: ['--pool']
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'link',
|
id: 'link',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
|
@ -30,6 +35,10 @@ class ytpCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(message, args) {
|
async exec(message, args) {
|
||||||
|
if (args.pool) {
|
||||||
|
return message.channel.send(`here is currently ${fs.readdirSync('./asset/ytp/userVid/').length} videos, you can add yours by doing \`\`${prefix[0]} ytp --add (link or attachment)\`\``);
|
||||||
|
}
|
||||||
|
|
||||||
if (args.add) {
|
if (args.add) {
|
||||||
let loadingmsg = await message.channel.send('Downloading <a:loadingmin:527579785212329984>');
|
let loadingmsg = await message.channel.send('Downloading <a:loadingmin:527579785212329984>');
|
||||||
let Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
|
|
Loading…
Reference in a new issue