npm install --save curseapp.js
curseapp.js is a 100% promise based, Object-oriented wrapper for the CurseApp API for the NodeJS language.
It currently offers a wide support for general bot applications, and is still constantly been developed and recieving new features and more easy access to other parts of the CurseApp API.
Documentation is available here! If you need to know more please talk to me or check the source. Additionally, if you encounter any problems or any errors please either join our dev server or add me directly on Twitch, InsertPaulHere
.
Dev server: https://invite.twitch.tv/djbMkz
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!');
});