A duplex streaming IRC client built on top of <code>irc</code>
irc-stream is a minimalistic, streaming bot wrapper for the irc module.
irc-stream will relay any combination of the following:
These messages are available as a readable stream, and can thus be piped into a writable stream. Messages can be written like for a writable stream, and messages sent will be sent in the channel/pm.
Ideally, use it with gu as both a readable and writable stream:
var ircStream = require'irc-stream'ircServer ircName ircModuleOpts ircStreamOpts;var gu = require'gu'scriptPath scriptFiles;ircStreampipegupipeircStream;
Where the first three
irc-stream arguments are simply passed through to the irc module.
Alternatively you could use it as just a readable stream or a writable stream. See flight-stream for an example as using it as a writable stream only.
The fourth argument control how we listen on IRC. By default the following options are all disabled or zero:
allErrors: Boolean // manually handle `irc` error eventsignoreChannel: Boolean // ignore channel directed messagesanswerPms: Boolean // respond to private messagesneverHighlight: Boolean // never highlight channel responsesalwaysHighlight: Boolean // always highlight channel responsesparticipationChance: Number // probability to respond without being addressed
NB: Can only do one of
alwaysHighlight. By default,
irc-stream will highlight the channel recipient on the first message only.
$ npm install irc-stream
MIT-Licensed. See LICENSE file for details.