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

10
fgfm.js
View File

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