mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-31 05:57:33 +00:00
17 lines
424 B
TypeScript
17 lines
424 B
TypeScript
/// <reference path="./plugapi.d.ts" />
|
|
|
|
import * as PlugAPI from "plugapi";
|
|
|
|
let yolo = new PlugAPI({
|
|
email: "",
|
|
password: ""
|
|
}, function (err,bot) {
|
|
if (!err) {
|
|
bot.connect("roomslug"); // The part after https://plug.dj
|
|
bot.on("roomJoin", function (room) {
|
|
console.log("Joined " + room);
|
|
});
|
|
} else {
|
|
console.log("Error initializing plugAPI: " + err);
|
|
}
|
|
}); |