config for commercial enable/disable
This commit is contained in:
@@ -64,7 +64,8 @@
|
|||||||
"recentlyPlayedMemory": 5,
|
"recentlyPlayedMemory": 5,
|
||||||
"roomGrindChance": 25,
|
"roomGrindChance": 25,
|
||||||
"roomGrindPlaytime": 1800,
|
"roomGrindPlaytime": 1800,
|
||||||
"defaultSRVolume": 50,
|
"defaultSRVolume": 75,
|
||||||
|
"commercialsEnabled": false,
|
||||||
"vods": [
|
"vods": [
|
||||||
{
|
{
|
||||||
"id": "ot-seg-escape",
|
"id": "ot-seg-escape",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
TODO:
|
TODO:
|
||||||
☐ Room vid requests / import
|
☐ Room vid requests / import
|
||||||
☐ Add random chance for room grind playlist to show for certain amount of time
|
✔ Add random chance for room grind playlist to show for certain amount of time @done (18-09-21 12:28)
|
||||||
☐ modularize OBS and Twitch code
|
☐ modularize OBS and Twitch code
|
||||||
☐ Rotating background images (leftside)
|
☐ Rotating background images (leftside)
|
||||||
☐ Stream alerts for chat
|
☐ Stream alerts for chat
|
||||||
@@ -12,6 +12,9 @@ TODO:
|
|||||||
☐ Move vods to their own config
|
☐ Move vods to their own config
|
||||||
☐ Tool to output list of video ID's / descriptions
|
☐ Tool to output list of video ID's / descriptions
|
||||||
☐ Support viewer skip voting
|
☐ Support viewer skip voting
|
||||||
|
☐ Command to add sets of videos to the queue at once (like the entire ttas or all gold segments)
|
||||||
|
☐ Command to stop video rotation / timers (shutdown)
|
||||||
|
☐ Ability to include/exclude vods from shuffle in config
|
||||||
|
|
||||||
___________________
|
___________________
|
||||||
Archive:
|
Archive:
|
||||||
|
|||||||
2
fgfm.js
2
fgfm.js
@@ -154,7 +154,7 @@ const streamInit = (config, obs, twitch) => {
|
|||||||
const nextVideo = () => {
|
const nextVideo = () => {
|
||||||
// Show a "commercial break" if it's been long enough since the last one
|
// Show a "commercial break" if it's been long enough since the last one
|
||||||
let secondsSinceLastCommercial = (Date.now() - lastCommercialShownAt) / 1000;
|
let secondsSinceLastCommercial = (Date.now() - lastCommercialShownAt) / 1000;
|
||||||
if (secondsSinceLastCommercial >= config.commercialInterval) {
|
if (config.commercialsEnabled === true && secondsSinceLastCommercial >= config.commercialInterval) {
|
||||||
commercialPlaying = true;
|
commercialPlaying = true;
|
||||||
|
|
||||||
console.log(`It has been ${secondsSinceLastCommercial} seconds since the last commercial break!`);
|
console.log(`It has been ${secondsSinceLastCommercial} seconds since the last commercial break!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user