public TwitchBot() { mTcpConnection = new TcpConnection(); mTcpConnection.DataReceived += ProccessMessageData; mTcpConnection.EmergencyDisc = EmergencyReset; mIrcCommandAnalyzer = new SimpleTwitchBotIrcCommandAnalyzer(); host = (CustomHost)ApplicationHost.CreateApplicationHost(typeof(CustomHost), "/", Directory.GetParent(Directory.GetCurrentDirectory()).FullName); StartHttpListener(); mQE = new QuizEngine(); mQE.SendMessage = SendMessageToCurrentChannel; mQE.PropertyChanged += ProxyPassNotifyPropertyChanged; mQE.InternalInitiationQuizStop = StopQuiz; TwitchChannel = "NONE"; }
public TwitchBot () { mTcpConnection = new TcpConnection(); mTcpConnection.DataReceived += ProccessMessageData; mTcpConnection.EmergencyDisc = EmergencyReset; mIrcCommandAnalyzer = new SimpleTwitchBotIrcCommandAnalyzer(); host = (CustomHost)ApplicationHost.CreateApplicationHost(typeof(CustomHost), "/", Directory.GetParent(Directory.GetCurrentDirectory()).FullName); StartHttpListener(); mQE = new QuizEngine(); mQE.SendMessage = SendMessageToCurrentChannel; mQE.PropertyChanged += ProxyPassNotifyPropertyChanged; mQE.InternalInitiationQuizStop = StopQuiz; TwitchChannel = "NONE"; }