SimpleIRCLib 1.2.2
See the version list below for details.
dotnet add package SimpleIRCLib --version 1.2.2
NuGet\Install-Package SimpleIRCLib -Version 1.2.2
<PackageReference Include="SimpleIRCLib" Version="1.2.2" />
paket add SimpleIRCLib --version 1.2.2
#r "nuget: SimpleIRCLib, 1.2.2"
// Install SimpleIRCLib as a Cake Addin #addin nuget:?package=SimpleIRCLib&version=1.2.2 // Install SimpleIRCLib as a Cake Tool #tool nuget:?package=SimpleIRCLib&version=1.2.2
SimpleIRCLib for Csharp
THIS LIBRARY IS STILL IN DEVELOPMENT
This library is designed to make communication through IRC easier to implement in your application. In comparison to other C# IRC libraries, this library also enables you to download using the DCC (XDCC) protocol, used by IRC.
It's main features are:
- Is simple to use.
- Is simple to implement
- It's lightweight
- Multiple channel support
- DCC Download support
NuGet
Version
1.0.0:
- First release version
1.0.1:
- Fixed bug where leaving out debug callback would cause nullreferenceexception.
1.1.1:
- Added split in username | message
- Added quit/disconnect method
- removed usesless getters and setters
- fixed a few more less significant bugs
1.1.2:
- Removed getDownloadProgress, now download information can be retreived within the downloadStatusChangedCallback.
- Fixed error when you try to check if client is running before connecting to a server!
1.1.3:
- Code mostly reworked by following feedback from this post: reddit, such as:
- removed static fields
- removed inheriting classes
- text now being parsed through regex
- for receiving messages: a async task instead of a thread
- getDownloadProgress/downloadStatusChangedCallback has different way of operation (see below)
- addes status attribute for downloadstatus/progress
1.1.3 → 1.1.7:
- stability issues fixed
1.1.8:
- bugfixes, see commit description
1.1.9:
- bugfixes, see commit description
1.2.0
- Functionality update: Added method to retreive all the users in the current channel, as well as in other channels (but most of them will be hidden, so not very usefull ^^).
1.2.1
- Functionality update: Send Raw Messages (such as NICK, PRIVMSG etc.)
- Functionality update: Retreive Raw Data
- Functionality update: Send /msg using normal sendMessage() function
- Functionality update: Receive Notice message just like PRIVMSG (end user sees the source of the notice, for example: NickServ: bla bla bla)
- Code update: changed parsing messages a bit.
1.2.2
- Fixed issue with downloading filesizes larger than 4Gb.
Usage - Console Application
TIP: If you do not want a seperate DLL file with your program you can either copy the .cs files to your solution/project and manually change the Namespace, or you can use a program called ILMerge to combine a exe and dll together(not tested)!
This is a list with the most important methods available to you:
(void) setupIrc(ip, port, username, password, channel, chatOutputCallback);
(void) setDebugCallback(debugOutputCallback);
(void) setRawOutput(setRawOutputCallback);
(string) downloadDir; //is now string, can be changed while running instance
(void) setDownloadStatus(downloadStatusCallback);
(void) startClient();
(void) stopClient();
(bool) isClientRunning();
(bool) stopXDCCDownload();
(object) getDownloadProgress(string whichdownloaddetail) //see below
(void) getUsersInCurrentChannel();
(void) getUsersInDifferentChannel(string channel)
(void) sendMessage(message);
(void) sendRawMessage(message);
(string) newUsername; //is now string field instead of method
(string) newChannel; //is now string field instead of method
Full Example
An (quick and dirty) example can be found here: Example
A winform example including video tutorial (v1.1.2): YouTube
Development
I will try to fix (significant) bugs as quick as possible, but due to my study taking a rollercoaster dive in a few days it might take a while before an actual update will appear. It is very barebone and does need some refinement. So, progress in development will come down to how much free time I have and how much of it I want to spend working on this library.
Todos
- Some DCC fixes, most things seem to work, but there are some odd cases where it might not work.
- More readable code (getting better)
- Renaming some stupidly named names
Disclaimer
This library is still in alpha stadium, many things might go wrong and therefore I am not responsible for whatever happens while you use this application.
License
MIT
Free Software, Hell Yeah!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net451 is compatible. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on SimpleIRCLib:
Repository | Stars |
---|---|
erfg12/AOL_4.0_Emu
Emulating AOL 4.0
|
Version | Downloads | Last updated |
---|---|---|
2.2.1 | 1,771 | 10/28/2018 |
2.2.0 | 943 | 8/21/2018 |
2.1.2 | 844 | 8/21/2018 |
2.1.1 | 893 | 8/9/2018 |
2.1.0 | 1,011 | 6/21/2018 |
2.0.0 | 972 | 5/21/2018 |
1.2.4 | 971 | 1/28/2018 |
1.2.3 | 939 | 10/22/2017 |
1.2.2 | 1,029 | 10/5/2017 |
1.2.1 | 905 | 8/31/2017 |
1.2.0 | 1,083 | 1/7/2017 |
1.1.90 | 1,950 | 4/24/2016 |
1.1.8 | 1,508 | 4/24/2016 |
1.1.7 | 1,230 | 3/20/2016 |
1.1.6 | 1,284 | 3/20/2016 |
1.1.5 | 1,214 | 3/20/2016 |
1.1.4 | 1,241 | 3/20/2016 |
1.1.3.1 | 1,213 | 3/20/2016 |
1.1.3 | 1,307 | 3/19/2016 |
1.1.2 | 1,378 | 2/3/2016 |
1.1.1 | 1,305 | 2/2/2016 |
1.1.0 | 1,328 | 2/2/2016 |
1.0.2 | 1,264 | 2/1/2016 |
1.0.1 | 1,315 | 2/1/2016 |
1.0.0 | 1,321 | 2/1/2016 |
- DCC now supports filesizes > 4GB