Skip to content

Instantly share code, notes, and snippets.

@MrJacz
Created May 3, 2019 20:53
Show Gist options
  • Save MrJacz/0371f38073344bcf28bb0154393a61f8 to your computer and use it in GitHub Desktop.
Save MrJacz/0371f38073344bcf28bb0154393a61f8 to your computer and use it in GitHub Desktop.
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