Advertisement
LGPvS

LudwigOS Bot 0.6

Sep 5th, 2018
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Ludwigbot rougako
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.17
  5. // @description  try to take over the world!
  6. // @author       LudwigOS
  7. // @include      http://www.multiplayerpiano.com/*
  8. // @include      http://multiplayerpiano.com/*
  9. // @include      http://mpp.meowbin.com/*
  10. // @include      http://www.ourworldofpixels.com/piano/FUCKOF
  11. // @include      https://facebook.com
  12. // @grant        none
  13. // ==/UserScript==
  14.  
  15. var rn = "Ludwigbot(BOOTTTT)"; //YOUR NAME HERE
  16. var change = "off";
  17. var switcher = "off";
  18. var start = "on";
  19. window.doCommand = true; MPP.client.on("a", function (msg) { if (!doCommand) return; var args = msg.a.split(" ");
  20. MPP.piano.renderer.keyMovement=50 ;
  21. var cmd = args[0].toLowerCase();
  22. args = args.slice(1);
  23. var sendChat = function(msg) { MPP.chat.send(msg);};
  24. var name = msg.p.name;
  25. input = msg.a.substring(cmd.length).trim();
  26.  
  27. // add commands here, they must be in the same format. ex: ["cmd", "yourcommand", "anothercommand"
  28.  
  29. var commands =("commands, help, hello, say, talk, morning");
  30. var version = "Version 0.20";
  31.  
  32.  
  33.  
  34. //-----------------------|changeables|-----------------------//
  35. var pf = "/";                     //prefix -change it to change your prefix
  36. var bnn = "ROUGAKO";       //bot  name - change it to cahnge you bot name
  37. var lpp = "Nyan~";             //last prefis - you can just delete it
  38. var sc = "Ludwigbot "; //script creator - thats the name of the sript creator
  39. var sn = "~|Ludwigbot rougako|~ "; //script name - its the script name
  40. var adminid = [MPP.client.getOwnParticipant()._id];
  41. var admad = bn+ "Sorry "+name+" but this is a admin command"+lp;
  42. //-----------------------|changeables|-----------------------//
  43. var lp = ". "+lpp;
  44. var p  = ": ";
  45. var bn = bnn+p;
  46.  
  47. if(start === "on"){
  48.     start = "off"; //in the next line: prototype for rougako-chan GIF
  49.     rn = MPP.client.getOwnParticipant().name;
  50.     $(".relative").append('<style> table, th, td { font-size: 100%; border: 1px solid black; } </style> <table style="height:150px; position: fixed;bottom: 470px;right:330px;"> <tr bgcolor="#000"> <td id="table" height="100px" width="100"> <img src="https://lh3.googleusercontent.com/-UvHhOYHYgSM/U-vybjrwTgI/AAAAAAAJA2c/eRJGWXPtYic/w506-h592/wave.chitanda.hyouka.bye.later.morning.hi.hello.gif" width="100" height="130"><p><font size="-2">Concept</font> <u><font style="font-size:8px" color="#00FFFF">'+version+'</font><u></p></td> </tr> </table>');
  51. }
  52.  
  53.  
  54. if(cmd === pf+"version"){
  55.     if(input === "rougako"){
  56.     sendChat(bn+sn);
  57. }
  58. }
  59. if(cmd===pf+"namechange"){
  60. if (change === "off" && msg.p._id==adminid){
  61. change = "on";
  62. }else if (change === "on" && msg.p._id==adminid){
  63. change = "off";
  64. }
  65. }
  66. if(cmd === pf+"rougako"){
  67.     if(args.length === 0 && change === "on"){
  68.         let rougako = [bn+ "Yes master" +lp, bn+"Say what ill do"+lp,bn+ "Im here, what i should do? "+lpp];
  69.          sendChat(rougako[Math.floor(rougako.length * Math.random())]);
  70.  
  71.     }else if(change === "off" && args.length === 0){
  72.         MPP.client.sendArray([{m: "userset",set: {name: bnn}}]);
  73.         let rougako2 = [ "Yes master, try "+pf+"rougako <help>" +lp, "Say what ill do! "+lpp, "Im here, what i should do? "+lpp];
  74.          sendChat(rougako2[Math.floor(rougako2.length * Math.random())]);
  75.         setTimeout(function(){ MPP.client.sendArray([{m: "userset",set: {name: rn}}]);
  76.                              }, 2100);
  77.  
  78.     }else if(change === "off" && msg.a.includes("help")){
  79.          MPP.client.sendArray([{m: "userset",set: {name: bnn}}]);
  80. let rougakohlp = [ "How i can help you? I think "+pf+"rougako <commands> will help you! "+lpp, "Try use "+pf+"rougako <commands>"+lp, "Maybe "+pf+"rougako <commands> will help you"+lp];
  81.          sendChat(rougakohlp[Math.floor(rougakohlp.length * Math.random())]);
  82.     setTimeout(function(){ MPP.client.sendArray([{m: "userset",set: {name: rn}}]);
  83. }, 2100);
  84.  
  85. }else if(change === "off" && msg.a.includes("morning")){
  86.     MPP.client.sendArray([{m: "userset",set: {name: bnn}}]);
  87.     let rougakomor= ["Ohaiyo "+name+lp,"Good morning "+name+lp,"Konnichiwa "+name+lp];
  88.          sendChat(rougakomor[Math.floor(rougakomor.length * Math.random())]);
  89.     setTimeout(function(){ MPP.client.sendArray([{m: "userset",set: {name: rn}}]);
  90.                           }, 2100);
  91.  
  92. }else if(change === "off" && msg.a.includes("commands")){
  93.     MPP.client.sendArray([{m: "userset",set: {name: bnn}}]);
  94.     sendChat("My commands are: "+commands+lp);
  95.     setTimeout(function(){ MPP.client.sendArray([{m: "userset",set: {name: rn}}]);
  96.          }, 2100);
  97.  
  98. }else if(change === "off" && msg.a.includes("hlep")){
  99.     MPP.client.sendArray([{m: "userset",set: {name: bnn}}]);
  100.     sendChat("My commands are: "+commands+lp);
  101.     setTimeout(function(){ MPP.client.sendArray([{m: "userset",set: {name: rn}}]);
  102.          }, 2100);
  103.  
  104. }else if(change === "off" && msg.a.includes("say")){
  105. MPP.client.sendArray([{m: "userset",set: {name: bnn}}]);
  106. sendChat(msg.a.substring(11).trim()+lp);
  107. setTimeout(function(){ MPP.client.sendArray([{m: "userset",set: {name: rn}}]);
  108. }, 2100);
  109.  
  110. }else if(change === "off" && msg.a.includes("talk")){
  111. MPP.client.sendArray([{m: "userset",set: {name: bnn}}]);
  112. sendChat(msg.a.substring(12).trim()+lp);
  113. setTimeout(function(){ MPP.client.sendArray([{m: "userset",set: {name: rn}}]);
  114. }, 2100);
  115.  
  116. }else if(change === "off" && msg.a.includes("hi")||("hello")||("yo")){
  117.     MPP.client.sendArray([{m: "userset",set: {name: bnn}}]);
  118.     let rougakohi = ["Hello "+name+", i can do something to you? "+lpp,"Hello master "+name+lp,"Yo :v"];
  119.          sendChat(rougakohi[Math.floor(rougakohi.length * Math.random())]);
  120.     setTimeout(function(){ MPP.client.sendArray([{m: "userset",set: {name: rn}}]);
  121.                           }, 2100);
  122.  
  123. }else{
  124.     if(change ==="on"&& msg.a.includes("say")){
  125. sendChat(bn+msg.a.substring(11).trim()+lp);
  126. }
  127. }
  128. }
  129. /*if(cmd===pf+"rougakosay"){
  130. if(args.length === 0){
  131. sendChat(bn+"That command make me say anything. Use <|rougakosay exemple>"+lp);
  132. }else if(change === "off"){
  133. MPP.client.sendArray([{m: "userset",set: {name: bnn}}]);
  134. sendChat(input+lp);
  135. setTimeout(function(){ MPP.client.sendArray([{m: "userset",set: {name: "Ludwigbot(BR)"}}]);
  136. }, 2100);
  137. }else if(change ==="on"){
  138. sendChat(bn+input+lp);
  139. }
  140. }*/
  141.  
  142. if(cmd==="testrougako" && msg.p._id==adminid){
  143.     sendChat(bn+"The "+sn+" script is workin well"+lp);
  144. }
  145.  
  146. if (cmd == pf+"jstmk") {
  147.                 try {   /*jshint -W061 */
  148.                     sendChat(bn+"(rougako) " + eval(input) + lp);
  149.                 } catch (err) {
  150.                     sendChat(bn+"(rougako) "+err + lp);
  151.                 }
  152.             }
  153.  
  154. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement