R00tS3c / Pluggy

node.js library for creating plug.dj bots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pluggy Issues Build Status License Stars Forks Coverage Status

About

A generic NodeJS API for creating plug.dj bots.

Originally created by RootSec

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("R00tS3c").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!

About

node.js library for creating plug.dj bots

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%