Exemplo n.º 1
0
        public TwitchChatConnection(string chatServer, int port, ILog logger)
        {
            _client = new TcpClient(chatServer, port);
            Stream  = _client.GetStream();

            Writer = new TwitchResponseWriter(Stream, logger);

            _msgProc    = new TwitchRawMessageProcessor();
            this.logger = logger;
        }
Exemplo n.º 2
0
        public RizumuBot(TwitchResponseWriter tw)//, TwitchApiClient api)
        {
            this.tw = tw;
            //this.api = api;
            this.ignoreBots = new string[] { "moobot", "nightbot", "whale_bot" };

            CommandList       = new List <ICommand>();
            EventList         = new List <IEvent>();
            KeywordProcessors = new List <IKeyword>();

            // Lets you know its working
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            tw.RespondMessageAsync("MrDestructoid MrDestructoid MrDestructoid MrDestructoid MrDestructoid MrDestructoid MrDestructoid");
            tw.RespondMessageAsync("test");
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
        }