vibeirc 1.0.5

An IRC module 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.

##A simple example

import std.stdio;

import vibeirc;

class Bot: IRCConnection
{
    this()
    {
        nickname = "vibeirc";
    }
    
    override void signed_on()
    {
        join_channel("#test");
    }
    
    override void privmsg(Message message)
    {
        if(message.receiver == nickname || message.isCTCP)
            return;
        
        writefln(
            "[%s] <%s> %s",
            message.receiver,
            message.sender.nickname,
            message.message
        );
    }
}

Bot bot;

static this()
{
    bot = irc_connect!Bot(
        ConnectionParameters(
            "localhost",
            6667
        )
    );
}

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

Authors:
  • Yoplitein
Dependencies:
vibe-d
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
Show all 16 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 1 downloads this month

  • 484 downloads total

Score:
1.4
Short URL:
vibeirc.dub.pm