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

Obs remote control with chat

Remote control OBS sources & scenes using chat commands. Requires: obs-websocket   Commands Command are the same as your scene / source names. Example if you have a scene called “Scene1” you type in chat !scene1 , to use sources...

August 26, 2021
0 More