Beispiel #1
0
        /*
         * THIS IS HANDLED THROUGH THE NORMAL TWITCH CLIENT
         * private async void OnChannelSubscription(object sender, OnChannelSubscriptionArgs e)
         * {
         *  JsonDumper.DumpObjectToJson(e, "PUBSUB_OnChannelSub"); // collect a few of these so we know what we are dealing with
         *  BotChannel bChan = await Program.Channels.GetTwitchChannelByName(e.Subscription.ChannelName);
         *  //Program.BotEvents.RaiseOnTwitchSubscription(bChan, new TwitchSubGiftEventArguments(e)); // TODO HOOK IT UP SILLY
         * }*/
        private async void Client_OnHost(object sender, OnHostArgs e)
        {
            BotChannel bChan = await Program.Channels.GetTwitchChannelByID(_twitchChannelName);

            await Core.LOG(new LogEntry(LOGSEVERITY.WARNING, "PUBSUB", "Channel hosted another channel. This neds to be hooked up"));
        }
 /// <summary>
 /// Passes <see cref="OnHost"/> events down to subscribed plugins.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An <see cref="OnHostArgs"/> object.</param>
 private void TwitchPubSub_OnHost(object sender, OnHostArgs e) => OnHost?.Invoke(this, e);
Beispiel #3
0
 private void PubSub_OnHost(object sender, OnHostArgs e)
 {
     chatbot.ManualMessage($"{e.HostedChannel}!!");
 }
 private void _pubSubClient_OnHost(object sender, OnHostArgs e)
 {
 }
Beispiel #5
0
 public Task BroadcastHost(OnHostArgs host)
 {
     return(Clients.All.SendAsync("ReceiveNewHost", host));
 }
 private void PubSub_OnHost(object sender, OnHostArgs e)
 {
     _logger.Information($"{e.Moderator} started host to {e.HostedChannel}");
 }