Exemplo n.º 1
0
 private void OnStreamUp(object sender, OnStreamUpArgs e)
 {
     _stretchTimer = new Timer(
         _ => SendStretchMessage(),
         null,
         TimeSpan.FromSeconds(_config.StretchReminderFrequency),
         TimeSpan.FromSeconds(_config.StretchReminderFrequency));
 }
Exemplo n.º 2
0
        private static async void OnStreamUp(object sender, OnStreamUpArgs e)
        {
            TwitchBotGlobalObjects.IsStreamOnline = true;
            TimeSpan?upTime = await TwitchApiController.GetStreamUpTime();

            if (upTime != null)
            {
                TwitchBotGlobalObjects.StreamUpTime = new TimeSpan(upTime.Value.Hours, upTime.Value.Minutes, upTime.Value.Seconds);
            }
            _streamOnlineTimer.Start();
        }
Exemplo n.º 3
0
 private static void PubSub_OnStreamUp(object sender, OnStreamUpArgs e)
 {
     StreamStatus = (int)StreamStatus % 3 == 0 ? StreamState.OnlineHosting : StreamState.OnlineNotHosting;
     BotTools.LogLine("Stream went Online");
 }
Exemplo n.º 4
0
        /// <summary>
        /// NuJuan Verified
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <returns></returns>
        private async void Client_OnStreamUp(object sender, OnStreamUpArgs e)
        {
            BotChannel bChan = await Program.Channels.GetTwitchChannelByName(_twitchChannelName);

            Program.BotEvents.RaiseOnTwitchChannelGoesLive(bChan, e.PlayDelay);
        }
Exemplo n.º 5
0
 private static void onStreamUp(object sender, OnStreamUpArgs e)
 {
     Console.WriteLine($"Stream just went up! Play delay: {e.PlayDelay}, server time: {e.ServerTime}");
 }
 /// <summary>
 /// Passes <see cref="OnStreamUp"/> events down to subscribed plugins.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An <see cref="OnStreamUpArgs"/> object.</param>
 private void TwitchPubSub_OnStreamUp(object sender, OnStreamUpArgs e) => OnStreamUp?.Invoke(this, e);
Exemplo n.º 7
0
 private void onStreamUp(object?sender, OnStreamUpArgs args)
 {
     _Logger.LogInformation($"Stream up: {args.ServerTime}");
 }
Exemplo n.º 8
0
 private void OnStreamUp(object sender, OnStreamUpArgs e)
 {
     form.WriteChat("Connecting to stream now", false);
 }
 private void PubSub_OnStreamUp(object sender, OnStreamUpArgs e)
 {
     _logger.Information($"The stream is up");
 }
Exemplo n.º 10
0
 private void OnStreamUp(object sender, OnStreamUpArgs e)
 {
     _logger.LogInformation($"Stream just went up! Play delay: {e.PlayDelay}, server time: {e.ServerTime}");
 }