Skip to content

nwitch/nwitch-motivate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nwitch-motivate

Build Status Dependency Status

nwitch (and slate-irc) plugin for motivating people.

05:34 <KenanY> !m Bob
05:34 <nwitch> You're doing good work, Bob!

Example

As a nwitch plugin (using config.toml):

[plugins]
nwitch-motivate = true

Or through nwitch's API:

var Nwitch = require('nwitch');
var motivate = require('nwitch-motivate');

var nwitch = new Nwitch({
  irc: {
    address: 'irc.freenode.org',
    port: 6667
  }
});

nwitch.use(motivate());

Technically, all nwitch plugins are just slate-irc plugins, so you could also use this as a slate-irc plugin:

var net = require('net');
var irc = require('slate-irc');
var motivate = require('nwitch-motivate');

var stream = net.connect({
  port: 6667,
  host: 'irc.freenode.org'
});

var client = irc(stream);
client.use(motivate());

Installation

$ npm install nwitch-motivate

API

var motivate = require('nwitch-motivate');

motivate()

Returns a function that accepts an instance of slate-irc.

About

nwitch plugin for motivating people

Resources

License

Stars

Watchers

Forks

Packages

No packages published