Beispiel #1
0
        void youtube_OnMessageReceived(object sender, YouTube.YoutubeMessage e)
        {
            if (!settings.youtubeEnable)
                return;

            SendMessage(new UbiMessage(String.Format("{0}", e.Text), EndPoint.Youtube, EndPoint.SteamAdmin) 
            { 
                FromName = e.User,
                NickColor = settings.youtubeNickColor,
                TextOnly = false
            });

        }
Beispiel #2
0
        private void ConnectYoutube()
        {
            if (isClosing)
                return;
            if (!settings.youtubeEnable)
                return;

            if (String.IsNullOrEmpty(settings.youtubeID))
                return;

            youtube = new YouTube(settings.youtubeID, settings.youtubeLastTime);
            youtube.OnMessageReceived += new EventHandler<YouTube.YoutubeMessage>(youtube_OnMessageReceived);

            youtube.Start();

        }