您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Bot to MPP
当前为
// ==UserScript== // @name Ghost Boy Bot // @namespace https://greasyfork.org/ // @version 0.1 // @description Bot to MPP // @author Ghosty // @icon https://mpphust.ga/assets/icon%20(48).png // @include *://multiplayerpiano.com/* // @include *://piano.ourworldofpixels.com/* // @grant none // @license MIT // ==/UserScript== // Script constants const PRE_MSG = "MPP BOT" + " (v" + "0.3" + "): "; // Connected. alert("Bot was Sucessfuly Connected ✅") MPP.chat.send("Console Connected ✅") MPP.chat.send("[Console]: Bot Connected ✅") function ban(id) {if (!(id == MPP.client.getOwnParticipant()._id)) MPP.client.sendArray([{m: "kickban", _id: id, ms: 30000}]); } var Rec = pp => { if (pp.name.match(/[а-я]/i)) { ban(pp._id)}}; MPP.client.on("participant added", Rec); MPP.client.on("participant update",Rec); MPP.client.on('a', function (m) { if (m.a.match(/[а-я]/i)) ban(m.p._id) }); setInterval(function() {}, 60); // Variables. var error = "Error"; // Error bot command. var adminarray = []; // Function ADMIN command. // Bot client. MPP.client.on("a", function(msg) { var asgr = msg.a.split(' '); var cmd = asgr[0]; var input = msg.a.substring(cmd.legth).trim(); // Commands. if (cmd == "13help") { MPP.chat.send("Info❓: 13help, 13who/qid") MPP.chat.send("Fun😜: 13buy, 13eat, 13use, 13role, 13hug") MPP.chat.send("Tools🛠: 13about, 13help, 13link, 1̶3̶f̶o̶l̶l̶o̶w̶") } if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin commmand. if (cmd == "13help") { MPP.chat.send("Admin🔒: 13ban, 13unban, 13check, 13link, 13test") } } if (cmd == "13about") { MPP.chat.send("Bot created Using JavaScript. Still Being Develoved By Ghost Boy") } if (cmd == "13info") { MPP.chat.send("Hi, " + msg.p.name + " Enter 13help to see the list of commands!") } if (cmd == "13who") { MPP.chat.send("Name: " + msg.p.name + " | Your ID: " + msg.p.id + " | The Current Color: " + msg.p.color) } if (cmd == "qid") { MPP.chat.send("Name: " + msg.p.name + " | Your ID: " + msg.p.id + " | The Current Color: " + msg.p.color) } // Admin commands. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command. if (cmd == "13ban") { MPP.client.sendArray([{m: 'kickban', _id: msg.a.substring(5).trim(), ms: 300000}]) } } if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command. if (cmd == "13unban") { MPP.client.sendArray([{m: 'unban', _id: msg.a.substring(7).trim()}]) } } if (cmd == "13check") { MPP.chat.send("DataBase: " + MPP.client.desiredChannelId + "" + MPP.client.ppl) } if (cmd == "13follow"){ MPP.chat.send("Sorry But This Script Is Unavalible") } if (cmd === "13test"){ MPP.chat.send("The script is working!✅") } if (cmd == "13link") { MPP.chat.send("Bot Link🤖- https://pastebin.com/Q6ECVcDa") } if (msg.a.substring(0,'13ban'.length)=="13ban"){var ms=1000,banvar=msg.a.substring('13ban_'.length,msg.a.length); if (msg.p._id==MPP.client.getOwnParticipant()._id){ MPP.client.sendArray([{m: "kickban", _id: banvar, ms: ms}]);} else {MPP.chat.send(" "+msg.p.name+", you not have a permission to use it command.");}} // Buy... commands. if (cmd == "13hug") { MPP.chat.send(msg.p.name + " Hugged: " + msg.a.substring(5).trim() + ".") } if (cmd == "13buy") { MPP.chat.send(msg.p.name + " Bought: " + msg.a.substring(5).trim() + ".") } if (cmd == "13eat") { MPP.chat.send(msg.p.name + " Ate: " + msg.a.substring(5).trim() + ".") } if (cmd == "13use") { MPP.chat.send(msg.p.name + " Used: " + msg.a.substring(5).trim() + ".") } if (cmd == "13role") { MPP.chat.send("Your role is: " + "[" + msg.a.substring(6).trim() + "].") } }) /* msg.a response END */; /* MPP.client.on('participant added', pp => { MPP.chat.send("Welcome " + pp.name + " to the " + MPP.client.desiredChannelId + "! Type '13about' to info this bot.") }) /* added response end /*; */ console.log("Ghosty's Bot: Online ✅");