예제 #1
0
        public WhisperBot( SQLite sqlite )
        {
            _sqlite = sqlite;

            _irc = new IrcClient( "199.9.253.119", 6667, Credentials.login, Credentials.oauth );
            _irc.sendIrcMessage( "CAP REQ :twitch.tv/commands" );

            ThreadStart ts = delegate { this.listnerThread(); };
            Thread thread = new Thread( ts );
            thread.Start();
        }
예제 #2
0
파일: MainBot.cs 프로젝트: Luth/TwitchBot
        public MainBot( SQLite sqlite )
        {
            _sqlite = sqlite;

            _irc = new IrcClient( "irc.twitch.tv", 6667, Credentials.login, Credentials.oauth );
            string[] rooms = Resources.rooms.Split( ',' );
            foreach ( string room in rooms )
                _irc.joinRoom( room.Trim() );
            _irc.sendIrcMessage( "CAP REQ :twitch.tv/membership" );
            _irc.sendIrcMessage( "CAP REQ :twitch.tv/commands" );
            _irc.sendIrcMessage( "CAP REQ :twitch.tv/tags" );

            ThreadStart ts = delegate { this.ListnerThread(); };
            Thread thread = new Thread( ts );
            thread.Start();
        }