Example #1
0
        private void LoadChatConfiguration()
        {
            var configurationPackage         = Context.CodePackageActivationContext.GetConfigurationPackageObject("Config");
            ConfigurationSection chatSection = configurationPackage.Settings.Sections["ChatConfig"];

            _chatConfiguration = new TwitchChatConfiguration(chatSection.Parameters["Nickname"].Value, chatSection.Parameters["OAuth"].Value);
        }
Example #2
0
 public TwitchChatClient(TwitchChatConfiguration chatConfiguration)
 {
     _chatConfiguration = chatConfiguration;
 }