debug flag

This commit is contained in:
loicbersier 2019-12-10 22:38:51 +01:00
parent b2a6c10cd4
commit db4e889b1c

View file

@ -81,6 +81,11 @@ class ytpCommand extends Command {
match: 'flag', match: 'flag',
flag: ['--squidward'] flag: ['--squidward']
}, },
{
id: 'debug',
match: 'flag',
flag: ['--debug']
},
{ {
id: 'link', id: 'link',
type: 'string' type: 'string'
@ -170,7 +175,7 @@ class ytpCommand extends Command {
let options = { let options = {
debug: false, // Better set this to false to avoid flood in console debug: args.debug,
MAX_STREAM_DURATION: Math.floor((Math.random() * 3) + 1), // Random duration of video clip MAX_STREAM_DURATION: Math.floor((Math.random() * 3) + 1), // Random duration of video clip
sources: './asset/ytp/sources/', sources: './asset/ytp/sources/',
sounds: './asset/ytp/sounds/', sounds: './asset/ytp/sounds/',