Пример #1
0
        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";
        }
Пример #2
0
		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";
		}