vibeirc ~master
An IRC client for vibe.d
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
vibeirc
An IRC module for vibe.d
Documentation
The code is documented via ddoc comments. There is also online documentation available here.
Examples
Simple
import std.stdio;
import vibeirc;
shared static this()
{
auto bot = new IRCClient;
void onLogin()
{
bot.join("#test");
}
void onMessage(Message message)
{
if(message.target == bot.nickname || message.isCTCP)
return;
writefln(
"[%s] <%s> %s",
message.target,
message.sender.nickname,
message.message
);
}
bot.onLogin = &onLogin;
bot.onMessage = &onMessage;
bot.connect("irc.example.net", 6667);
}
More complete example
License
vibeirc is available under the terms of the BSD 2-clause license. See LICENSE for details.
Contributing
Pull requests and issue reports are welcome!
- Registered by Steven Dwy
- ~master released 6 years ago
- Yoplitein/vibeirc
- BSD 2-Clause
- Copyright © 2014-2018, Steven "Yoplitein" Dwy
- Authors:
- Dependencies:
- vibe-d:core, vibe-d:stream
- Versions:
-
2.2.1 2018-Mar-26 2.2.0 2018-Feb-18 2.1.4 2015-Nov-24 2.1.3 2015-Nov-10 2.1.2 2015-Nov-10 - Download Stats:
-
-
0 downloads today
-
1 downloads this week
-
1 downloads this month
-
484 downloads total
-
- Score:
- 1.4
- Short URL:
- vibeirc.dub.pm