BlushyFace.Twitch.*

BlushyFace.Twitch.* is a set of libraries that handles Twitch services such as Auth / API and chat to make it easier to write apps that makes use of Twitch.

Twitch auth example

[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...

Connect to Twitch chat

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...

August 26, 2021
More

Generate Twitch auth tokens

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...

Send a whisper to a user

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:...

August 26, 2021
More

Twitch chat handle subs / cheers

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...

August 26, 2021
More

Reply to chat (thread)

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...

August 26, 2021
More