Hack Forums
[C#] IrcClient.cs | Very basic irc client source with events | Make irc bots+++ - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] IrcClient.cs | Very basic irc client source with events | Make irc bots+++ (/showthread.php?tid=5794522)



IrcClient.cs | Very basic irc client source with events | Make irc bots+++ - gigajew - Feb 3, 2018

Here's a simple irc client source I put together. It supports disconnecting gracefully from server. You can (for example) use this as a base for an irc bot.

IrcClient.cs source code:
Spoiler (Click to View)

IrcClient.cs example usage:
Spoiler (Click to View)

Use Client.Send(message, channels) to chat in a channel