Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.65 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.65 KB

Pluggy Issues Build Status License Stars Forks Coverage Status

About

A generic NodeJS API for creating plug.dj bots.

Originally created by Ciker

NOTE: Currently not supporting Facebook login.

How to use

Run the following:

npm install pluggy

Example:

var Pluggy = require('pluggy');
var pluggy = new Pluggy({
	credentials: {
		email: "email",
		password: "pass"
	},
	resumeConnection: true,
	splitMessages: true,
	multilineMessages: true
});

pluggy.on("pluggy:events:connected", (err, self) => {
	console.log("SOCKET OPENED!", err);
	pluggy.connect("ciker").then(
		state => {
			pluggy.sendChat("Pluggy works!");
			setTimeout(() => {
				pluggy.sendChat("Pluggy works!");
			}, 5e3);
		},
		err => console.log(err)
	);
});

Have a bot that uses the API? Let us know!