Yatmi 1.1.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Yatmi --version 1.1.4                
NuGet\Install-Package Yatmi -Version 1.1.4                
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.1.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Yatmi --version 1.1.4                
#r "nuget: Yatmi, 1.1.4"                
#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.1.4

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

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 net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.
  • net6.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 121 6/15/2024
1.3.1 150 1/5/2024
1.3.0 93 1/2/2024
1.2.1 121 11/21/2023
1.2.0 138 6/24/2023
1.1.9 255 3/2/2023
1.1.8 263 1/30/2023
1.1.7 348 11/5/2022
1.1.6 356 11/5/2022
1.1.5 367 10/8/2022
1.1.4 438 9/22/2022