Advertisement
Guest User

AlewigOS MPP bot. Version:0.4 (Modifcado por Ale)

a guest
Apr 11th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name AlewigOs bot
  3. // @namespace multiplayerpiano.com/
  4. // @version 0.4
  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("a", function (msg) {
  59. a = msg.a.split(' ');
  60. b = a[0];
  61. input = msg.a.substring(b.length).trim(); // <--- for if I make more commands :D
  62.  
  63. MPP.client.on('a',function(msg){
  64. cmdChar = '/';
  65. if(!msg.a[0].match(cmdChar))return;
  66. var ops = [];
  67. ops.push(MPP.client.getOwnParticipant()._id);
  68. opped = ops.indexOf(msg.p._id) !== -1;
  69.  
  70. var args = msg.a.split(' ');
  71. var cmd = args[0].substr(1).trim();
  72. if(cmd == 'js'){
  73. if(opped){
  74. var code = args.splice(1).join(' ');
  75. try { MPP.chat.send('> ' + JSON.stringify(eval(code))); } catch (e) { MPP.chat.send('> ' + e); }
  76. } else MPP.chat.send(msg.p.name+', you not have a permission to use it command.');
  77. }
  78. });
  79.  
  80. if (b == "/waveMIDI") {
  81. MPP.client.sendArray([{m: "userset",set: {name: "/waveMIDI"}}]);
  82. sendChat("Reading MIDI effect:Name:/waveMIDI");
  83. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
  84. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)});
  85. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)});
  86. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)});
  87. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)});
  88. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 70)});
  89. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 65)});
  90. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 60)});
  91. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 55)});
  92. t=0; Object.keys(MPP.piano.keys).forEach(function(key) {setTimeout(function () {MPP.press(key,1)}, t++ * 50)});
  93. }
  94.  
  95. if (b == "/h") {
  96. 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.");
  97. }
  98.  
  99.  
  100. if (b == "/help") {
  101. 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.");
  102. }
  103.  
  104. if (b == "/fish") {
  105. MPP.chat.send("Use /fish ID to fishing. Example:/fish_0");
  106. }
  107.  
  108. if (b == "/eat") {
  109. MPP.chat.send("You ate CHEESEEEEEEEEEE");
  110. }
  111.  
  112. if (b == "/about") {
  113. MPP.chat.send("Author:LGPvS,Pastebin:http://pastebin.com/u/LGPvS");
  114. }
  115.  
  116. if (b == "/version") {
  117. MPP.chat.send("Version:0.4 AlewigOS");
  118. }
  119.  
  120. if (b == "/versions") {
  121. MPP.chat.send("Version:0.1,Version:0.2,Version:0.3,Version:0.3.2,Version:0.4");
  122. }
  123.  
  124.  
  125.  
  126. if (b == "/fish_0") {
  127. MPP.chat.send("You catch fish...");
  128. MPP.chat.send("You caught a magical fish");
  129. }
  130.  
  131. if (b == "/fish_1") {
  132. MPP.chat.send("You catch fish...");
  133. MPP.chat.send("Sorry,you caught a shoes - adidas ");
  134. }
  135.  
  136. if (b == "/fish_2") {
  137. MPP.chat.send("You catch fish...");
  138. MPP.chat.send("You caught a tripod");
  139. }
  140.  
  141. if (b == "/do_not_use_it") {
  142. MPP.chat.send("/p 26736");
  143. }
  144.  
  145. if (b == "/fish_3") {
  146. MPP.chat.send("You catch fish...");
  147. MPP.chat.send("You caught a iphone 13 pro max, it can not be eaten,because it's a mobile");
  148. }
  149.  
  150. if (b == "/returnadminnickname") {
  151. MPP.client.sendArray([{m: "userset",set: {name: "Tripod3000"}}]);
  152. }
  153.  
  154. 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.");}}
  155.  
  156.  
  157. 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] }}]); }}
  158.  
  159. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement