require("dotenv").config(); let Client = require("./src/mppt-client.js"); let client = new Client("wss://mppclone.com:8443", process.env.MPPCLONE_TOKEN); client.start(); // client.setChannel("test/fishing"); // client.setChannel("βœ§π““π“”π“₯ π“‘π“Έπ“Έπ“Άβœ§"); client.setChannel("The Dev Channel"); // let _id = "de328727de4b466f4f5f1b65"; // let _id2 = "e42cecb0ed0ed03639dfd4be"; // let _id = "fb1573d271464fef2ff4be93"; function rrggbbrand(){var a = Math.floor(Math.random() * 256).toString(16); return a.length < 2 ? "0"+a : a}; client.on("ch", () => { // let color = `#${rrggbbrand()}${rrggbbrand()}${rrggbbrand()}`; // console.log(color); // client.sendArray([{m:'setcolor', _id:_id, color:color}]); // client.sendArray([{m:'setcolor', _id:_id, color:""}]); // setInterval(() => { // client.sendArray([{m:'setname', _id:_id, name:"Not Lapis"}]); // client.sendArray([{m:'setname', _id:_id2, name: "Not Lapis"}]) // process.exit(); // }, 25); client.sendArray([{m:"setname", _id:_id, name:"Autoplayer the retard"}]); // client.sendArray([{m: "settag", _id: "ead940199c7d9717e5149919", tag: { text: "hri", color: "#9900ff" }}]) // for (let p of Object.values(client.ppl)) { // let name = p.name + " 😩"; // client.sendArray([{m:'setname', _id: p._id, name:name}]); // } process.exit(); });