Created
May 3, 2019 20:53
-
-
Save MrJacz/0371f38073344bcf28bb0154393a61f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppServer } from './server'; | |
import { TwitchChat } from './twitch-chat'; | |
import { AlertsManager } from './alerts-manager'; | |
import EffectsManager from './effects-manager'; | |
import Commander from './commander'; | |
import * as config from './config'; | |
const effectsManager = new EffectsManager(); | |
const commander = new Commander(effectsManager); | |
const appServer: AppServer = new AppServer(effectsManager); | |
const twitchChat: TwitchChat = new TwitchChat(effectsManager); | |
effectsManager.loadEffects().then(() => { | |
effectsManager.initEffectControllers(); | |
twitchChat.connect(); | |
}); | |
const alertManager: AlertsManager = new AlertsManager( | |
config.streamElementsJwt, | |
effectsManager, | |
twitchChat | |
); | |
alertManager.listenToEvents(); | |
export { appServer }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment