Home Code snippets & examples
Category:

Code snippets & examples

  • This is the code snippet of the blog post here: Twitch lib updated to .NET Core Compiled debug build can be found here: http://files.blushyface.com/BlushyFace.Core.Tests/ http://files.blushyface.com/BlushyFace.Core.Tests/Twitch/Chat/Program.cs using System; using BlushyFace.Core.Twitch.Chat; namespace BlushyFace.Core.Tests.Twitch.Chat { class Program { private static Client _client; private static Client _client2; private static bool ConnectClient1 = false; private static bool ConnectClient2 = true; static void Main(string[] args) { var userName = “”; var token = “”; if (ConnectClient1) { _client = new Client { RegisterCapRequestCommands = true, RegisterCapRequestMembership = true, RegisterCapRequestTags = true }; _client.OnPrivMsg += Events.ClientOnPrivMsg; _client.OnNotice += Events.ClientOnNotice; _client.OnClearChat += Events.ClientOnClearChat; _client.OnClearMsg += Events.ClientOnClearMsg; _client.OnGlobalUserState +=…