{"id":16916483,"url":"https://github.com/swiftyspiffy/muxylib","last_synced_at":"2025-04-12T21:24:05.282Z","repository":{"id":78553417,"uuid":"83928429","full_name":"swiftyspiffy/MuxyLib","owner":"swiftyspiffy","description":"C# library that provides events for all of the Twitch and donation data that Muxy sends its clients.","archived":false,"fork":false,"pushed_at":"2017-03-04T23:51:49.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T15:42:06.674Z","etag":null,"topics":["bits","donate","donation","event","follow","muxy","socket","subscriber","twitch"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swiftyspiffy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-04T22:20:12.000Z","updated_at":"2024-04-02T19:21:10.000Z","dependencies_parsed_at":"2023-03-23T11:19:48.169Z","dependency_job_id":null,"html_url":"https://github.com/swiftyspiffy/MuxyLib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftyspiffy%2FMuxyLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftyspiffy%2FMuxyLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftyspiffy%2FMuxyLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftyspiffy%2FMuxyLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftyspiffy","download_url":"https://codeload.github.com/swiftyspiffy/MuxyLib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248633079,"owners_count":21136799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bits","donate","donation","event","follow","muxy","socket","subscriber","twitch"],"created_at":"2024-10-13T19:27:59.264Z","updated_at":"2025-04-12T21:24:05.275Z","avatar_url":"https://github.com/swiftyspiffy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MuxyLib - [Muxy](https://muxy.io/) Events for .NET\n*****\n### About\nMuxyLib is a .NET library that can interface with the Muxy donation service. It has a number of events that can be subscribed to, each with sets of data relevant to the specified event.\n*****\n### Events\n#### Client Specific\n - `OnConnected` - Fires when connected to Muxy service.\n - `OnDisconnected` - Fires when disconnected from Muxy service.\n - `OnClientError` - Fires when an error occurs in the client.\n\n#### Muxy Specific\n - `OnPing` - Fires when Muxy sends a Ping.\n - `OnBits` - Fires when Muxy detects a user sent bits in chat.\n - `OnFollow` - Fires when Muxy detects a new follower.\n - `OnSubscriber` - Fires when Muxy detects a new subscriber.\n - `OnSessionChange` - Fires when Muxy detects session change (online/offline).\n - `OnHosted` - Fires when Muxy detects a user has started hosting the channel.\n - `OnDonation` - Fires when Muxy receives a donation for the specified channel.\n \n*****\n\n### Example Implementations\nWhile the Muxy Test Application provided in this repository demos all of the events in this library, initialization and a few events are shown below in a console app implementation:\n```csharp\nprivate static Client client;\nstatic void Main(string[] args)\n{\n    client = new Client(\"YOUR_MUXY_OVERLAY_URL_HERE\");\n    client.OnConnected += onConnected;\n    client.OnFollow += onFollow;\n    client.OnDonation += onDonation;\n    client.Connect();\n    while (true) ;\n}\nprivate static void onConnected(object sender, MuxyLib.Events.Client.OnConnectedArgs e)\n{\n    Console.WriteLine(\"Connected to Muxy service!\");\n}\nprivate static void onFollow(object sender, MuxyLib.Events.Client.OnFollowArgs e)\n{\n    Console.WriteLine($\"Follower detected! Follower name: {e.Viewer.Name}\");\n}\nprivate static void onDonation(object sender, MuxyLib.Events.Client.OnDonationArgs e)\n{\n    Console.WriteLine($\"A donation was just received from {e.Viewer.Name} in the amount of {e.Extra.Amount}!\");\n}\n```\n\n*****\n\n### Installation/Download\n#### [NuGet](https://www.nuget.org/packages/MuxyLib/)\n\nTo install this library via NuGet via NuGet console, use:\n```\nInstall-Package MuxyLib\n```\nand via Package Manager, simply search:\n```\nMuxyLib\n```\n#### Build\nIn addition to the NuGet package listing, you are also welcome to fork/clone this repo and build the project yourself, modifying it as you need.\n\n*****\n\n### Dependencies\n* Newtonsoft.Json 7.0.1+ ([nuget link](https://www.nuget.org/packages/Newtonsoft.Json/7.0.1))\n* WebSocketSharp-NonPreRelease ([nuget link](https://www.nuget.org/packages/WebSocketSharp-NonPreRelease/))\n\n*****\n\n### License\nA license file exists in this project by the name of LICENSE .\n\n*****","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftyspiffy%2Fmuxylib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftyspiffy%2Fmuxylib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftyspiffy%2Fmuxylib/lists"}