/nicolive

Nicolive comments fetcher

Primary LanguageGoMIT LicenseMIT

nicolive

build status

Nicolive comments fetcher.

Installation

$ go get github.com/dqn/nicolive

Usage

package main

import (
  "fmt"

  "github.com/dqn/nicolive"
)

func main() {
  n, err := nicolive.New("MAIL", "PASSWORD")
  if err != nil {
    // Handle error.
  }

  err = n.Listen("LIVE_ID", func(c *nicolive.Chat) error {
    fmt.Println(c.Text)
    return nil
  })

  if err != nil {
    // Handle error.
  }
}

CLI

$ go get github.com/dqn/nicolive/cmd/nicolive
$ nicolive <mail> <password> <live-id>

License

MIT