This commit is contained in:
Chris Ham
2018-10-04 09:58:56 -07:00
parent 9a24f4b522
commit b7f45db0f6
5 changed files with 10 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
TODO: TODO:
Add cooldowns Add cooldowns @done (18-10-02 10:16)
☐ Move anything that calls director.state from app into fgfm lib
☐ Restrict # of requests a user can have in the queue at once
☐ Move vrmode timer to this bot, delete from SLCB ☐ Move vrmode timer to this bot, delete from SLCB
☐ Support a CLI flag to delay showing queue until command is issued ☐ Support a CLI flag to delay showing queue until command is issued
☐ Room vid requests / import ☐ Room vid requests / import
@@ -11,7 +13,6 @@ TODO:
☐ Remove currently playing video from vote choices ☐ Remove currently playing video from vote choices
☐ Command to add sets of videos to the queue at once (like the entire ttas or all gold segments) ☐ 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) ☐ Command to stop video rotation / timers (shutdown)
☐ Restrict # of requests a user can have in the queue at once
☐ Start/stop stream automation ☐ Start/stop stream automation
☐ Start ☐ Start
- Starting Soon is shown until countdown is triggered - Starting Soon is shown until countdown is triggered

10
fgfm.js
View File

@@ -267,13 +267,13 @@ const streamInit = (config, twitch) => {
current: (cmd) => { current: (cmd) => {
// @TODO: Move into FGFM // @TODO: Move retrieval of currentVideo into FGFM
twitch.botChat.say(cmd.to, `Now Playing: ${director.state.currentVideo.chatName}`); twitch.botChat.say(cmd.to, `Now Playing: ${director.state.currentVideo.chatName}`);
}, },
next: (cmd) => { next: (cmd) => {
// @TODO: Move into FGFM // @TODO: Move retrieval of videoQueue into FGFM
if (director.state.videoQueue.length > 0) { if (director.state.videoQueue.length > 0) {
twitch.botChat.say(cmd.to, `Next Video: ${director.state.videoQueue[0].chatName}`); twitch.botChat.say(cmd.to, `Next Video: ${director.state.videoQueue[0].chatName}`);
} else { } else {
@@ -290,7 +290,7 @@ const streamInit = (config, twitch) => {
} }
// make sure request vid isn't in the queue already // make sure request vid isn't in the queue already
// @TODO: Move into FGFM // @TODO: Move check into FGFM
if (director.state.videoQueue.findIndex(e => e.id === requestedVideoId) !== -1) { if (director.state.videoQueue.findIndex(e => e.id === requestedVideoId) !== -1) {
twitch.botChat.say(cmd.to, `That video is in the queue already!`); twitch.botChat.say(cmd.to, `That video is in the queue already!`);
return; return;
@@ -303,6 +303,8 @@ const streamInit = (config, twitch) => {
return; return;
} }
// @TODO: Make sure user hasn't met the request limit
config.vods.alttp[vodIndex].requestedBy = cmd.from; config.vods.alttp[vodIndex].requestedBy = cmd.from;
// add to queue if it exists // add to queue if it exists
@@ -333,6 +335,8 @@ const streamInit = (config, twitch) => {
return; return;
} }
// @TODO: Make sure user hasn't met the request limit
room.requestedBy = cmd.from; room.requestedBy = cmd.from;
director.addRoomVideo(room); director.addRoomVideo(room);

BIN
sfx/enjoy.mp3 Executable file

Binary file not shown.

BIN
sfx/gtt.mp3 Executable file

Binary file not shown.

BIN
sfx/hamlaugh2.mp3 Executable file

Binary file not shown.