Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name LudwigOS's bot
- // @namespace multiplayerpiano.com/
- // @version 0.3
- // @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('participant added', pp => { MPP.chat.send('Hello to room named "' + MPP.client.channel._id + '", user "' + pp.name + '"!' ); });
- 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
- if (b == "/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, /renameadminnickname. Fishing Commands: /fish, /eat. About: /about, /version, /versions.");
- }
- if (b == "/help") {
- MPP.chat.send("Commands: /help or /h, /waveMIDI, /renameadminnickname. Fishing Commands: /fish, /eat. About: /about, /version, /versions.");
- }
- if (b == "/fish") {
- MPP.chat.send("fishing...");
- MPP.chat.send("you fished fish!!");
- }
- if (b == "/eat") {
- MPP.chat.send("You eat a fish.");
- }
- if (b == "/about") {
- MPP.chat.send("Author:LGPvS,Pastebin:http://pastebin.com/u/LGPvS");
- }
- if (b == "/version") {
- MPP.chat.send("Version:0.3");
- }
- if (b == "/versions") {
- MPP.chat.send("Version:0.1,Version:0.2,Version:0.3");
- }
- if (b == "/renameadminnickname") { MPP.client.sendArray([{m: "userset",set: {name: a [1] }}]); }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement