GithubHelp home page GithubHelp logo

nikkiii / irkki-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cubeee/irkki-client

0.0 2.0 0.0 29 KB

Irkki-client is a ridiculously named IRC client library written in go.

Go 98.88% Shell 1.12%

irkki-client's Introduction

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!")
    }
}

irkki-client's People

Contributors

cubeee avatar nikkiii avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.