easier command

This commit is contained in:
Chris Ham
2018-09-25 15:45:48 -07:00
parent a197b379e4
commit b1cc3eff6b
2 changed files with 3 additions and 3 deletions

View File

@@ -5,12 +5,12 @@ TODO:
☐ support for $pause
☐ Command to stop video rotation / timers (shutdown)
☐ Start/stop stream automation
☐ Rotating background images (leftside)
☐ Stream alerts for chat
☐ remove currently playing video from vote choices
☐ restrict # of requests a user can have in the queue at once
☐ Add cooldowns
☐ Tool to output list of video ID's / descriptions
☐ Rotating background images (leftside)
Ideas:
☐ Web interface for viewers to issue commands -- twitch extension?!

View File

@@ -279,14 +279,14 @@ const streamInit = (config, twitch) => {
obs.switchToScene(newScene).catch(console.error);
// SET ON-SCREEN ACTIVITY
} else if (commandNoPrefix === 'setactivity') {
} else if (commandNoPrefix === 'setact') {
let newActivity = commandParts.slice(1).join(' ');
if (!newActivity) {
twitch.botChat.say(to, `Please provide a new activity`);
return;
}
obs.showActivity(newActivity).then(() => twitch.botChat.say(to, `Activity updated!`)).catch(console.error);
obs.showActivity(newActivity).catch(console.error);
// REBOOT
} else if (commandNoPrefix === 'reboot') {