Skip to content

OrigemWoot/Pluggy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published