Yatmi 1.1.5
See the version list below for details.
dotnet add package Yatmi --version 1.1.5
NuGet\Install-Package Yatmi -Version 1.1.5
<PackageReference Include="Yatmi" Version="1.1.5" />
paket add Yatmi --version 1.1.5
#r "nuget: Yatmi, 1.1.5"
// Install Yatmi as a Cake Addin #addin nuget:?package=Yatmi&version=1.1.5 // Install Yatmi as a Cake Tool #tool nuget:?package=Yatmi&version=1.1.5
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 | Versions 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. |
-
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.