/cursejs

An unofficial curse api lib

Primary LanguageJavaScriptMIT LicenseMIT

cursejs

A nodeJS based implementation of the CurseAPI for bot and third party apps developers. The library is not considered yet to be stable.

If you want to join the project, or just discuss about Curse implementations you can join us in the Curse unofficial API dev server.

Documentation

Library documentation

Installing

Branch master:

(Take this one if you don't know which one to take.)

npm install git://github.com/njibhu/cursejs.git

With branch dev:

npm install git://github.com/njibhu/cursejs.git#dev

Updating

npm update cursejs

Use of library

var cursejs = require('cursejs');
var client = new cursejs.Client;

//This is a very basic command handling
client.on('message_received', function(message){
    if(message.content === "!ping"){
        message.reply("pong!");
    }
});

client.run("LOGIN", "PASSWORD");

Requirements

  • NodeJS 4+
  • ws library
  • winston library

Usually npm will handle these for you.

Related Projects