join control chatroom

This commit is contained in:
Chris Ham
2018-09-25 17:07:19 -07:00
parent b1cc3eff6b
commit d21255d1ff
3 changed files with 108 additions and 3 deletions

View File

@@ -32,12 +32,14 @@ obs.init()
// Connect to twitch, set up basic event listeners
const twitchInit = (config) => {
return new Promise((resolve, reject) => {
console.log(`Connecting to Twitch / ${config.channel}...`);
let controlRoom = `#chatrooms:${config.channelId}:${config.controlRoomId}`;
console.log(`Connecting to Twitch / ${config.channel} / ${controlRoom}`);
let defaultTwitchConfig = {
autoRejoin: true,
retryCount: 10,
channels: [config.channel],
channels: [config.channel, controlRoom],
debug: config.debug
};