MiniTwitch.Irc
2.0.2
dotnet add package MiniTwitch.Irc --version 2.0.2
NuGet\Install-Package MiniTwitch.Irc -Version 2.0.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="MiniTwitch.Irc" Version="2.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MiniTwitch.Irc" Version="2.0.2" />
<PackageReference Include="MiniTwitch.Irc" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MiniTwitch.Irc --version 2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MiniTwitch.Irc, 2.0.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.
#:package MiniTwitch.Irc@2.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MiniTwitch.Irc&version=2.0.2
#tool nuget:?package=MiniTwitch.Irc&version=2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MiniTwitch.Irc
MiniTwitch.Irc is the component responsible for Twitch chat services. The usage of this package revolves around the IrcClient
class which handles connection, communication and channel management
Features
- Package code is fully documented with XML comments
- Full coverage of chatroom messages and events with convenient APIs
- Built with performance and memory in mind. Nanosecond speeds, with low memory allocation
- Exposes events as
ValueTask
, making for efficient & concurrent usage - Automatically reconnects upon disconnection & automatically rejoins channels
- Simple & customizable ratelimiting of sending messages and joining channels
- Allows for connecting anonymously - No need for authorization if you don't plan to send anything!
- Understand what happens behind the scenes by supplying an
ILogger
. Allows you to use any logging library which implements logging abstractions
Getting Started
here is an example usage of the IrcClient
class:
using MiniTwitch.Irc;
using MiniTwitch.Irc.Models;
namespace MiniTwitchExample;
public class Program
{
static async Task Main()
{
Bot bot = new("myusername", "mytoken");
await bot.Client.ConnectAsync();
await bot.Client.JoinChannel("occluder");
_ = Console.ReadLine();
}
}
public class Bot
{
public IrcClient Client { get; init; }
public Bot(string username, string token)
{
Client = new IrcClient(options =>
{
options.Username = username;
options.OAuth = token;
});
Client.OnChannelJoin += ChannelJoinEvent;
Client.OnMessage += MessageEvent;
}
private ValueTask ChannelJoinEvent(IrcChannel channel)
{
return Client.SendMessage(channel.Name, "Hello from MiniTwitch!");
}
private async ValueTask MessageEvent(Privmsg message)
{
if (message.Content == "penis123")
{
await message.ReplyWith("That's my password!!");
}
else if (message.Content == "Wait a minute!")
{
await Task.Delay(TimeSpan.FromMinutes(1));
await message.ReplyWith("I waited. Now what?");
}
}
}
Product | Versions 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- MiniTwitch.Common (>= 2.0.1)
-
net9.0
- MiniTwitch.Common (>= 2.0.1)
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 | |
---|---|---|---|
2.0.2 | 197 | 6/16/2025 | |
2.0.2-ts.1752555667 | 112 | 7/15/2025 | |
2.0.2-ts.1750917466 | 113 | 6/26/2025 | |
2.0.2-ts.1750693595 | 111 | 6/23/2025 | |
2.0.2-ts.1750676394 | 108 | 6/23/2025 | |
2.0.1 | 384 | 1/31/2025 | |
2.0.0 | 365 | 11/19/2024 | |
1.3.0 | 229 | 10/22/2024 | |
1.2.16 | 426 | 8/10/2024 | |
1.2.15 | 207 | 6/1/2024 | |
1.2.14 | 133 | 6/1/2024 | |
1.2.13 | 138 | 6/1/2024 | |
1.2.12 | 292 | 2/1/2024 | |
1.2.11 | 148 | 1/27/2024 | |
1.2.10 | 172 | 1/10/2024 | |
1.2.9 | 1,010 | 12/3/2023 | |
1.2.8 | 352 | 11/14/2023 | |
1.2.7 | 182 | 10/12/2023 | |
1.2.6 | 180 | 9/26/2023 | |
1.2.5 | 200 | 9/23/2023 | |
1.2.4 | 269 | 7/1/2023 | |
1.2.3 | 250 | 6/28/2023 | |
1.2.2 | 237 | 6/4/2023 | |
1.2.1 | 237 | 5/30/2023 | |
1.2.0 | 258 | 5/9/2023 | |
1.1.1 | 246 | 5/3/2023 | |
1.1.0 | 263 | 5/1/2023 | |
1.0.0 | 260 | 4/30/2023 |
Changelog available at: https://github.com/occluder/MiniTwitch/blob/master/MiniTwitch.Irc/CHANGELOG.md