From db4e889b1c86059d76b80c2faa3bc88c632e76d7 Mon Sep 17 00:00:00 2001
From: loicbersier <loic.bersier1@gmail.com>
Date: Tue, 10 Dec 2019 22:38:51 +0100
Subject: [PATCH] debug flag

---
 commands/fun/ytp.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/commands/fun/ytp.js b/commands/fun/ytp.js
index e53e3b4..b1f972a 100644
--- a/commands/fun/ytp.js
+++ b/commands/fun/ytp.js
@@ -81,6 +81,11 @@ class ytpCommand extends Command {
 					match: 'flag',
 					flag: ['--squidward']
 				},
+				{
+					id: 'debug',
+					match: 'flag',
+					flag: ['--debug']
+				},
 				{
 					id: 'link',
 					type: 'string'
@@ -170,7 +175,7 @@ class ytpCommand extends Command {
 
 
 		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
 			sources: './asset/ytp/sources/',
 			sounds: './asset/ytp/sounds/',