let people specify their stream duration

This commit is contained in:
loicbersier 2020-04-02 13:21:39 +02:00
parent f570b18912
commit 26fdf7cdb1

View file

@ -184,7 +184,7 @@ class ytpCommand extends Command {
let options = { let options = {
debug: args.debug, 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/', sources: './asset/ytp/sources/',
sounds: './asset/ytp/sounds/', sounds: './asset/ytp/sounds/',
music: './asset/ytp/music/', music: './asset/ytp/music/',