Simple XMPP implementation of the master of ceremonies of the werewolves party game.
To run on Mac OS X:
- download and install node
- download and install Xcode
- download and install MacPorts
- install icu headers with MacPorts
sudo port install icu +devel
- install node-stringprep
npm install node-stringprep
- install node-xmpp
npm install node-xmpp
For tests should
and mocha
are used. Install the former as follows
$ npm install should
Use sudo to install mocha
to be sure that npm
creates a link in /usr/local/bin
$ sudo npm install mocha
To run the tests, make sure that mocha
is in your path, cd into the git repository and run
$ mocha
Or, even better, use the --watch and --reporter options:
$ mocha --reporter spec --watch
The examples directory shows how to use the library. jabber_example.js
sets up a game co-ordinated by some bots connecting to the jabber.org XMPP server. To run from your git repository
$ node examples/jabber_example.js