Description

An IRC client for vibe.d

Package Information

Version2.1.4 (2015-Nov-24)
Repositoryhttps://github.com/Yoplitein/vibeirc
LicenseBSD 2-Clause
CopyrightCopyright © 2014, Steven "Yoplitein" Dwy
AuthorsYoplitein
Registered bySteven Dwy
Dependencies

vibe-d

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

#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 See example/src/app.d

##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!

Available versions

2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.1 2.0.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 ~master