From 26fdf7cdb110d53203648bef5358f3c7c7a7ca7a Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 2 Apr 2020 13:21:39 +0200 Subject: [PATCH] let people specify their stream duration --- commands/fun/ytp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/ytp.js b/commands/fun/ytp.js index 6c5615d..751c0c4 100644 --- a/commands/fun/ytp.js +++ b/commands/fun/ytp.js @@ -184,7 +184,7 @@ class ytpCommand extends Command { let options = { debug: args.debug, - MAX_STREAM_DURATION: Math.floor((Math.random() * 3) + 1), // Random duration of video clip + MAX_STREAM_DURATION: args.link ? args.link : Math.floor((Math.random() * 3) + 1), // Random duration of video clip sources: './asset/ytp/sources/', sounds: './asset/ytp/sounds/', music: './asset/ytp/music/',