The Curse Messenger has since shut down, hence this project will likewise be deprecated and archived.
curseapp.js is a 100% promise based, Object-oriented wrapper for the CurseApp API.
Bye bye Twitch.
npm install curseapp.js
Here's a simple script to get you started:
const Curse = require('curseapp.js');
const app = new Curse.Client();
app.on('connected', () => {
console.log(`Connected as ${app.user.name}`);
});
app.on('dropped', () => {
console.log('Connection dropped!');
});
app.on('message', (msg) => {
if (msg.content=='ping')
msg.reply('pong!');
});