Advertisement
LGPvS

LudwigOS MPP bot. Version:0.3.2

Jan 1st, 2017
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. // ==UserScript==
  2. // @name LudwigOS's bot
  3. // @namespace multiplayerpiano.com/
  4. // @version 0.3.2
  5. // @description Lol
  6. // @author LGPvS
  7. // @include http://www.multiplayerpiano.com/*
  8. // @match http://www.multiplayerpiano.com/script.js
  9. // ==/UserScript==
  10.  
  11. /*
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. ░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄
  19. ░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄
  20. ░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█
  21. ░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░█
  22. ░▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░█
  23. █▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒█
  24. █▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█
  25. ░█▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█
  26. ░░█░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█
  27. ░░░█░░██░░▀█▄▄▄█▄▄█▄████░█
  28. ░░░░█░░░▀▀▄░█░░░█░███████░█
  29. ░░░░░▀▄░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█
  30. ░░░░░░░▀▄▄░▒▒▒▒░░░░░░░░░░█
  31. ░░░░░░░░░░▀▀▄▄░▒▒▒▒▒▒▒▒▒▒░█
  32. ░░░░░░░░░░░░░░▀▄▄▄▄▄░░░░░█
  33.  
  34.  
  35. ░░░░░░░░▄▄▀▀█▀▀▀▀▀▄▄░░░░░░░░
  36. ░░░░░░▄▀▓░░▒░░▒▒▒▒▒▒█▄░░░░░░
  37. ░░░░▄█▓▓▓░░░░▒▒▒▒▒▒▒▒█▀▄░░░░
  38. ░░▄▀█▌▓▓▓░░░░▒▒▒▒▒▒▒▒▐▌▓▀▄░░
  39. ░█▓▓█▌▓▄▄▓░░░▒▒▒▒▄▄▒▒▒█▓▓▀▄░
  40. ▄▀▓▓█▌▓▀█▓░░░▒▒▒▒█▓▀▒▄▌▓▓▓▓█
  41. █▓▓▓▄▀▓▓▓▓░░░▒▒▒▒▒▒▒▒░░▌▓▓▓█
  42. ▀▄▓▓█░▀▓▓░░░░░░░▒▒▒▒▒░▄▌▓▓█░
  43. ░█▓▓▓█░▓░░░░░░░░░▒▒▒░░█▓▓▓█░
  44. ░▀▄▓▓█░▐░░▄▄███▄░░░▐░░░▀▄▀░░
  45. ░░▀▄▄▀░▐░░█████▀░░▄▀░░░░░░░░
  46. ░░░░░░░░▀░░▀██▀░▄▀░░░░░░░░░░
  47.  
  48. TROLOLOL
  49. */
  50.  
  51. var a;
  52. var b;
  53. var input;
  54.  
  55. function sendChat(msg) { //midilol
  56. MPP.chat.send(msg);
  57. }
  58. MPP.client.on('participant added', pp => { MPP.chat.send('Hello to room named "' + MPP.client.channel._id + '", user "' + pp.name + '"!' ); });
  59.  
  60. MPP.client.on("a", function (msg) {
  61. a = msg.a.split(' ');
  62. b = a[0];
  63. input = msg.a.substring(b.length).trim(); // <--- for if I make more commands :D
  64.  
  65. if (b == "/waveMIDI") {
  66. sendChat("Reading MIDI effect:Name:/waveMIDI");
  67. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
  68. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)});
  69. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)});
  70. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)});
  71. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)});
  72. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
  73. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)});
  74. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)});
  75. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)});
  76. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)});
  77. }
  78.  
  79. if (b == "/h") {
  80. MPP.chat.send("Commands: /help or /h, /waveMIDI, /renameadminnickname. /do_not_use_it. Fishing Commands: /fish, /eat. About: /about, /version, /versions.");
  81. }
  82.  
  83. if (b == "/help") {
  84. MPP.chat.send("Commands: /help or /h, /waveMIDI, /renameadminnickname, /do_not_use_it. Fishing Commands: /fish, /eat. About: /about, /version, /versions.");
  85. }
  86.  
  87. if (b == "/fish") {
  88. MPP.chat.send("Use /fish ID to fishing. Example:/fish_0");
  89. }
  90.  
  91. if (b == "/eat") {
  92. MPP.chat.send("You ate fish.");
  93. }
  94.  
  95. if (b == "/about") {
  96. MPP.chat.send("Author:LGPvS,Pastebin:http://pastebin.com/u/LGPvS");
  97. }
  98.  
  99. if (b == "/version") {
  100. MPP.chat.send("Version:0.3.2");
  101. }
  102.  
  103. if (b == "/versions") {
  104. MPP.chat.send("Version:0.1,Version:0.2,Version:0.3,Version:0.3.2");
  105. }
  106.  
  107. if (b == "/renameadminnickname") { MPP.client.sendArray([{m: "userset",set: {name: a [1] }}]); }
  108.  
  109. if (b == "/fish_0") {
  110. MPP.chat.send("You catch fish...");
  111. MPP.chat.send("You caught a salmon");
  112. }
  113.  
  114. if (b == "/fish_1") {
  115. MPP.chat.send("You catch fish...");
  116. MPP.chat.send("Sorry,you caught a boots - shoes");
  117. }
  118.  
  119. if (b == "/fish_2") {
  120. MPP.chat.send("You catch fish...");
  121. MPP.chat.send("You caught a pike");
  122. }
  123.  
  124. if (b == "/do_not_use_it") {
  125. MPP.chat.send("/p 26736");
  126. }
  127.  
  128. if (b == "/fish_3") {
  129. MPP.chat.send("You catch fish...");
  130. MPP.chat.send("You caught a puffer fish, it can not be eaten, because it is a poisonous fish");
  131. }
  132.  
  133. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement