Yatmi 1.3.2

dotnet add package Yatmi --version 1.3.2
NuGet\Install-Package Yatmi -Version 1.3.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Yatmi" Version="1.3.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Yatmi --version 1.3.2
#r "nuget: Yatmi, 1.3.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Yatmi as a Cake Addin
#addin nuget:?package=Yatmi&version=1.3.2

// Install Yatmi as a Cake Tool
#tool nuget:?package=Yatmi&version=1.3.2

YATMI

About

Yatmi (Yet Another Twitch Messaging Interface) allows you to connect to a Twitch Chat and read message or respond to messages.

Why?

I was bored and wanted a challenge.

Quick start

var client = new TwitchChatClient();

// Or if you want to be able to send chat messages
// var client = new TwitchChatClient("botName", "botOauthToken");

client.OnChatMessage += (sender, e) => 
{
    Console.WriteLine(string.Join(" ", new[]
    {
        $"[{e.Timestamp}]",
        $"[{e.Channel}]",
        $"{e.Username} wrote:",
        e.Message
    }));
};

await client.ConnectAsync();

await client.JoinChannelAsync("channel_name");

// To disconnect and free up resources
// await client.DisposeAsync()

Scopes

If you are using a username + oath token, you require some scopes for it to work.

Scope Description
channel:moderate Use moderator commands. Making your bot a moderator is not enough, you need both
chat:read View chat messages
chat:edit Send chat messages
whispers:read View your whisper messages
whispers:edit Send whisper messages

You can read more about the chat scopes here: https://dev.twitch.tv/docs/authentication/scopes

Regarding whispers

To send a whisper your bot needs to be a known bot by Twitch. But it can still receive a whisper as long as it has the whispers:read scope for it.

Because of that I have not been able to test and verify that sending a whisper actually works.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.2 80 6/15/2024
1.3.1 124 1/5/2024
1.3.0 67 1/2/2024
1.2.1 99 11/21/2023
1.2.0 118 6/24/2023
1.1.9 234 3/2/2023
1.1.8 238 1/30/2023
1.1.7 327 11/5/2022
1.1.6 331 11/5/2022
1.1.5 345 10/8/2022
1.1.4 414 9/22/2022