squelch-client
An IRC client for Node.js
Last updated 4 years ago by rahatarmanahmed .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install squelch-client 
SYNC missed versions from official npm registry.

squelch-client Build Status

An IRC Client for Node.js written in CoffeeScript, used in the Squelch IRC client.

Documentation

You can find the full documentation here.

Installation

npm install squelch-client

Example usage

There will be more extensive examples soon. For now, here is a simple IRC echo bot in CoffeeScript.

Client = require 'squelch-client'

client = new Client
	server: "irc.esper.net"
	nick: "TestBot"
	autoConnect: false
	channels: ["#kellyirc"]

client.connect()
.then ({nick}) ->
	client.on 'msg', ({from, to, msg}) ->
		if to is "#kellyirc"
			client.msg to, "ECHO: #{msg}"

Debugging

By default, squelch-client does not output anything to the console. If you wish to see debug output, run node with the DEBUG environment variable set to squelch-client:*. To only output errors, use squelch-client:error.

$ DEBUG=squelch-client:* node main.js

Current Tags

  • 0.19.0                                ...           latest (4 years ago)

32 Versions

  • 0.19.0                                ...           4 years ago
  • 0.18.0                                ...           4 years ago
  • 0.17.0                                ...           4 years ago
  • 0.16.0                                ...           4 years ago
  • 0.15.0                                ...           4 years ago
  • 0.14.1                                ...           4 years ago
  • 0.14.0                                ...           4 years ago
  • 0.13.1                                ...           4 years ago
  • 0.13.0                                ...           4 years ago
  • 0.12.0                                ...           4 years ago
  • 0.11.1                                ...           4 years ago
  • 0.11.0                                ...           4 years ago
  • 0.10.4                                ...           4 years ago
  • 0.10.3                                ...           5 years ago
  • 0.10.2                                ...           5 years ago
  • 0.10.1                                ...           5 years ago
  • 0.10.0                                ...           5 years ago
  • 0.9.0                                ...           5 years ago
  • 0.8.0                                ...           5 years ago
  • 0.7.0                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.6                                ...           5 years ago
  • 0.2.4                                ...           5 years ago
  • 0.2.3                                ...           5 years ago
  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |