Esempio n. 1
0
        private void ProcessChannelJoinedEvent(TwitchChannelJoinedEvent channelJoinedEvent)
        {
            var generalConfiguration = configurationManager.LoadConfiguration <GeneralConfiguration>();

            if (string.IsNullOrEmpty(generalConfiguration.BotChannelGreeting))
            {
                return;
            }

            bus.Publish(new SendChannelMessageRequestedEvent(generalConfiguration.BotChannelGreeting, channelJoinedEvent.ChannelName));
        }
        private void Client_OnJoinedChannel(object sender, OnJoinedChannelArgs e)
        {
            TwitchChannelJoinedEvent channelJoined = new TwitchChannelJoinedEvent(e.Channel);

            bus.Publish(channelJoined);
        }