Skip to content
Irkki-client is an IRC client library written in go.
Go Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
event
irc
log
.gitignore
.travis.yml
README.md
glide.yaml
irkki.go
irkki_test.go
test-coverage.sh

README.md

irkki-client

Travis Build status Coverage Status

Irkki-client is a ridiculously named IRC client library written in go. This library was developed primarily to be the underlaying IRC layer for a bouncer.

This is still heavily under development and should not be used in production!

Usage

go get github.com/cubeee/irkki-client

import (
    "github.com/cubeee/irkki-client"
    "github.com/cubeee/irkki-client/event"
    "github.com/cubeee/irkki-client/irc"
    "github.com/cubeee/irkki-client/log"
    "time"
)

func main() {
    user := &irc.User{
        Username: "irkki-client",
        Realname: "irkki-client",
    }
    cfg := *irc.NewConfig(user)
    cfg.Server = "irc.freenode.net"
    cfg.Port = 6667
    cfg.Timeout = 60 * time.Second

    client := irkki.NewClient(cfg)
    client.HandleEvent(event.CONNECTED, func(conn irc.Connection, event *event.Event) {
        conn.Join("#channel")
    })
    err := client.Connect()
    if err != nil {
        log.Panicln("Failed to connect!")
    }
}
You can’t perform that action at this time.