Twitch chat reconnect
Updated the ReconnectAsync(); method as well as added an optional parameter which takes the amount of reconnect attempts before forcing a disconnect.
Updated the ReconnectAsync(); method as well as added an optional parameter which takes the amount of reconnect attempts before forcing a disconnect.
Previously we wrote an auth lib that takes care of authenticating users (blog.blushyface.com/2020/09/30/developers/examples/quick-guide-blushyface-twitch-authentication/) and now we use that example to authenticate users to connect to Twitch chat. To start out we will be creating a new Authentication instance (that already...
[Update] Added support for optional states that is managed inside BlushyFace.Twitch.Authentication and renamed some methods so it’s more clear what they do but it is not updated in the [original] post below. [Original] BlushyFace.Twitch.Authentication is a lightweight C# .NET...
Started rewriting BlushyFace.Twitch.Chat into BlushyFace.Twitch.Chat.V2 because while v1 is a rewrite ported from my .NET FX version I wasn’t totally happy with it and decided to just rewrite it in it’s entirely. This is a work in progress but the...
An example how to generate Twitch access tokens with custom scopes. The example requires BlushyFace.Twitch.Authentication and BlushyFace.Common.HTTP to run a local HTTP server. using System.Collections.Specialized; using BlushyFace.Common.HTTP; using BlushyFace.Config; using BlushyFace.Twitch.API.Auth; using BlushyFace.Twitch.API.Auth.ResponseObjects; using Newtonsoft.Json; namespace BlushyFace.Examples { public static...
Requires – BlushyFace.Twitch.Chat.V2.Chat In this example we are sending a whisper from BlushyFace to BlushyFaceBot. Note that sending whispers to another user requires an authenticated user login with the following scope: whispers:edit var client = new Client(userName: “blushyface”, token:...
Requires – BlushyFace.Twitch.Chat.V2 Example #1 handle (re)subs Send a message in chat when a new subscriber has joined the sub club, if the subscriber has subbed for less than a year send a message in chat that they have...
Twitch recently added threaded replies in chat and the bot is updated to reply to said chat messages. To send a reply to a specific chat message you can do x.ReplyToMessage(…) where x is an instance of my Twitch chat...