Bot #2

none

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Bot #2
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  none
// @author       COdER
// @include      *://multiplayerpiano.com/*
// @include      *://mppclone.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

var admincmd = [];

MPP.client.on('participant added', pp => {
    MPP.chat.send('User ' + pp.name + ' (' + pp.id + ') ' + 'joined to the room!');
})
MPP.client.on("a", function(msg) {
    var asgr = msg.a.split(' ');
    var cmd = asgr[0];
    var input = msg.a.substring(cmd.length).trim();

if (cmd == '/help') {
    MPP.chat.send('Commands are: /help, /about, /!!!, /who, /random, /secret (ADMIN), /msg (say your msg) [your word].');
}
if (cmd == '/about') {
    MPP.chat.send('Bot made by COdER.');
}
if (cmd == '/!!!') {
    MPP.chat.send('!@#$%^&*()');
}
if (cmd == '/who') {
    MPP.chat.send('Your name is: ' + msg.p.name + ' | ID: ' + msg.p.id + ' | Color: ' + msg.p.color);
}
if (cmd == '/random') {
var words = ['Wow!', 'Lucky!', 'Bruh.', 'YES!']; var random = Math.floor(Math.random() * words.length);
MPP.chat.send('Random word: ' + words[random]);
}
if ((admincmd.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) {
if (cmd == '/secret') {
    MPP.chat.send('ID: 216241278645 • Login: 1g1a-222_cd');
}}
if (cmd == '/msg') {
    MPP.chat.send('Say msg: ' + msg.a.substring(5).trim());
}
})