Exemple #1
0
        public TwitchChatConnection(string chatServer, int port)
        {
            _client = new TcpClient(chatServer, port);
            Stream  = _client.GetStream();

            Writer = new TwitchResponseWriter(Stream);

            _msgProc = new TwitchRawMessageProcessor();
        }
Exemple #2
0
        public RoflBot(TwitchResponseWriter tw)
        {
            this.tw = tw;

            // Lets you know its working
            tw.RespondMessage("RoflBot Activating MrDestructoid");
            lastMessageSent = DateTime.Now;
            random          = new Random();
            messages        = GetMessages();
            arraySize       = messages.Length;
        }
Exemple #3
0
        public KatBot(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
            //tw.RespondMessage("MrDestructoid MrDestructoid MrDestructoid MrDestructoid MrDestructoid MrDestructoid MrDestructoid");
            //tw.RespondMessage("test");
        }