0.19.0 • Published 9 years ago

squelch-client v0.19.0

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

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

0.19.0

9 years ago

0.18.0

9 years ago

0.17.0

9 years ago

0.16.0

9 years ago

0.15.0

9 years ago

0.14.1

9 years ago

0.14.0

9 years ago

0.13.1

9 years ago

0.13.0

9 years ago

0.12.0

9 years ago

0.11.1

9 years ago

0.11.0

9 years ago

0.10.4

9 years ago

0.10.3

9 years ago

0.10.2

10 years ago

0.10.1

10 years ago

0.10.0

10 years ago

0.9.0

10 years ago

0.8.0

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.6

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago