new sfx
This commit is contained in:
10
fgfm.js
10
fgfm.js
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user