pokec-send-message
1.0.1 • Public • Published pokec-send-message
Simple wrapper class for sending messages to chatrooms on Pokec social network.
This package cannot send RP messages.
Install
Via npm [package]:
$ npm install pokec-send-message
Via yarn [package]:
$ yarn add pokec-send-message
Usage
const PokecAPI = require("pokec-send-message");
const pokec = new PokecAPI();
pokec.getRooms().then(console.log).catch(console.error);
pokec.login(
"username",
"password"
).then(response => {
console.log(response);
pokec.sendMessage(
"hello :)",
9,
"somebody"
).then(console.log).catch(console.error);
setInterval(() => pokec.ping().then(console.log).catch(console.error));
}).catch(console.error);
License
MIT
Package Sidebar
Install
Weekly Downloads