Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name AlewigOs bot
- // @namespace multiplayerpiano.com/
- // @version 0.4
- // @description Lol
- // @author LGPvS
- // @include http://www.multiplayerpiano.com/*
- // @match http://www.multiplayerpiano.com/script.js
- // ==/UserScript==
- /*
- ░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄
- ░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄
- ░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█
- ░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░█
- ░▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░█
- █▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒█
- █▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█
- ░█▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█
- ░░█░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█
- ░░░█░░██░░▀█▄▄▄█▄▄█▄████░█
- ░░░░█░░░▀▀▄░█░░░█░███████░█
- ░░░░░▀▄░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█
- ░░░░░░░▀▄▄░▒▒▒▒░░░░░░░░░░█
- ░░░░░░░░░░▀▀▄▄░▒▒▒▒▒▒▒▒▒▒░█
- ░░░░░░░░░░░░░░▀▄▄▄▄▄░░░░░█
- ░░░░░░░░▄▄▀▀█▀▀▀▀▀▄▄░░░░░░░░
- ░░░░░░▄▀▓░░▒░░▒▒▒▒▒▒█▄░░░░░░
- ░░░░▄█▓▓▓░░░░▒▒▒▒▒▒▒▒█▀▄░░░░
- ░░▄▀█▌▓▓▓░░░░▒▒▒▒▒▒▒▒▐▌▓▀▄░░
- ░█▓▓█▌▓▄▄▓░░░▒▒▒▒▄▄▒▒▒█▓▓▀▄░
- ▄▀▓▓█▌▓▀█▓░░░▒▒▒▒█▓▀▒▄▌▓▓▓▓█
- █▓▓▓▄▀▓▓▓▓░░░▒▒▒▒▒▒▒▒░░▌▓▓▓█
- ▀▄▓▓█░▀▓▓░░░░░░░▒▒▒▒▒░▄▌▓▓█░
- ░█▓▓▓█░▓░░░░░░░░░▒▒▒░░█▓▓▓█░
- ░▀▄▓▓█░▐░░▄▄███▄░░░▐░░░▀▄▀░░
- ░░▀▄▄▀░▐░░█████▀░░▄▀░░░░░░░░
- ░░░░░░░░▀░░▀██▀░▄▀░░░░░░░░░░
- TROLOLOL
- */
- var a;
- var b;
- var input;
- function sendChat(msg) { //midilol
- MPP.chat.send(msg);
- }
- MPP.client.on("a", function (msg) {
- a = msg.a.split(' ');
- b = a[0];
- input = msg.a.substring(b.length).trim(); // <--- for if I make more commands :D
- MPP.client.on('a',function(msg){
- cmdChar = '/';
- if(!msg.a[0].match(cmdChar))return;
- var ops = [];
- ops.push(MPP.client.getOwnParticipant()._id);
- opped = ops.indexOf(msg.p._id) !== -1;
- var args = msg.a.split(' ');
- var cmd = args[0].substr(1).trim();
- if(cmd == 'js'){
- if(opped){
- var code = args.splice(1).join(' ');
- try { MPP.chat.send('> ' + JSON.stringify(eval(code))); } catch (e) { MPP.chat.send('> ' + e); }
- } else MPP.chat.send(msg.p.name+', you not have a permission to use it command.');
- }
- });
- if (b == "/waveMIDI") {
- MPP.client.sendArray([{m: "userset",set: {name: "/waveMIDI"}}]);
- sendChat("Reading MIDI effect:Name:/waveMIDI");
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)});
- t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)});
- }
- if (b == "/h") {
- MPP.chat.send("Commands: /help or /h, /waveMIDI, /returnadminnickname, /do_not_use_it. Fishing Commands: /fish, /eat. About: /about, /version, /versions. Admin Commands: /js, /kickban, /renameadminnickname.");
- }
- if (b == "/help") {
- MPP.chat.send("Commands: /help or /h, /waveMIDI, /returnadminnickname, /do_not_use_it. Fishing Commands: /fish, /eat. About: /about, /version, /versions. Admin Commands: /js, /kickban, /renameadminnickname.");
- }
- if (b == "/fish") {
- MPP.chat.send("Use /fish ID to fishing. Example:/fish_0");
- }
- if (b == "/eat") {
- MPP.chat.send("You ate CHEESEEEEEEEEEE");
- }
- if (b == "/about") {
- MPP.chat.send("Author:LGPvS,Pastebin:http://pastebin.com/u/LGPvS");
- }
- if (b == "/version") {
- MPP.chat.send("Version:0.4 AlewigOS");
- }
- if (b == "/versions") {
- MPP.chat.send("Version:0.1,Version:0.2,Version:0.3,Version:0.3.2,Version:0.4");
- }
- if (b == "/fish_0") {
- MPP.chat.send("You catch fish...");
- MPP.chat.send("You caught a magical fish");
- }
- if (b == "/fish_1") {
- MPP.chat.send("You catch fish...");
- MPP.chat.send("Sorry,you caught a shoes - adidas ");
- }
- if (b == "/fish_2") {
- MPP.chat.send("You catch fish...");
- MPP.chat.send("You caught a tripod");
- }
- if (b == "/do_not_use_it") {
- MPP.chat.send("/p 26736");
- }
- if (b == "/fish_3") {
- MPP.chat.send("You catch fish...");
- MPP.chat.send("You caught a iphone 13 pro max, it can not be eaten,because it's a mobile");
- }
- if (b == "/returnadminnickname") {
- MPP.client.sendArray([{m: "userset",set: {name: "Tripod3000"}}]);
- }
- if (msg.a.substring(0,'/kickban'.length)=="/kickban"){var ms=1000,banvar=msg.a.substring('/kickban_'.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.");}}
- adminarray=[]; if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id==MPP.client.getOwnParticipant()._id)){ if (b == "/renameadminnickname") { MPP.client.sendArray([{m: "userset",set: {name: a [1] }}]); }}
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement