OwOBOTV2

A Little Bot I Made For MPP

  1. // ==UserScript==
  2. // @name OwOBOTV2
  3. // @namespace https://greasyfork.org/
  4. // @version 2.4
  5. // @description A Little Bot I Made For MPP
  6. // @author OwO Usaball 2.0 OwO On MPP
  7. // @icon https://play-lh.googleusercontent.com/wVfccAT4UUhRoIm0nTkl_8yPx3mcXyZ0amWZOXbH5QZ5bXKUZMQRxzrYrn94uI3Hug4
  8. // @match *://multiplayerpiano.com/*
  9. // @match *://mppclone.com/*
  10. // @match *://mpp.terrium.net/*
  11. // @match *://piano.ourworldofpixels.com/*
  12. // @match *://multiplayerpiano.net/*
  13. // @license MIT
  14. // @resource OwOBOTV2 https://greasyfork.org/scripts/451109-owobotv2/code/OwOBOTV2.user.js
  15. // ==/UserScript==
  16.  
  17. const DOWNLOAD_URL = SCRIPT.downloadURL;
  18. // Variables.
  19. var words = ['', '', '']; var random = Math.floor(Math.random() * words.length); // Random words about say on command - "/buy".
  20. var error = "Error"; // Error bot command.
  21. var adminarray = []; // Function ADMIN command.
  22.  
  23. // Bot client.
  24. MPP.client.on("a", function(msg) {
  25. var asgr = msg.a.split(' ');
  26. var cmd = asgr[0];
  27. var input = msg.a.substring(cmd.legth).trim();
  28.  
  29. // Commands.
  30. if (cmd == "oHelp") {
  31. MPP.chat.send("Here is a list of commands: !help (command), !about, !version, !codelangauges, !rank, !who.")
  32. MPP.chat.send("Admin Commands: !check, !mod !name, !cn, !name1, !name2 .")
  33. MPP.chat.send("Fun Commands: !balance, !abc, !123, !bruh, !SMM, !Rickroll, !Hug, !Kill, JapanIsHere.")
  34. }
  35. if (cmd == "!h") {
  36. MPP.chat.send("Info: !help (command), !about, !version, !codelangauges, !rank, !who.")
  37. MPP.chat.send("Admin Commands: !check, !mod !name.")
  38. MPP.chat.send("Fun Commands: !balance, !abc, !123, !hug, !, !, !.")
  39. }
  40. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin commmand.
  41. if (cmd == "!mod") {
  42. MPP.chat.send("Your Rank Is Moderator.")
  43. }
  44. if (cmd == "!check") {
  45. MPP.chat.send("DataBase checked room name: " + MPP.client.desiredChannelId + " and _id's on room: " + MPP.client.ppl)
  46. }
  47. }
  48. if (cmd == "!about") {
  49. MPP.chat.send("This bot was created by the discord user @cassidycodes")
  50. }
  51. if (cmd == "!Rickroll") {
  52. MPP.chat.send("/play https://bitmidi.com/uploads/79827.mid")
  53. }
  54. if (cmd == "!rank") {
  55. MPP.chat.send("Rank: Player (0)")
  56. }
  57. if (cmd == "!rankㅤㅤ") {
  58. MPP.chat.send("Rank: Administrator (4)")
  59. }
  60. if (cmd == "!JSㅤ") {
  61. MPP.chat.send("You arn't allowed to use this command")
  62. }
  63. if (cmd == "!rankㅤ") {
  64. MPP.chat.send("Rank: Owner (5)")
  65. }
  66. if (cmd == "!") {
  67. MPP.chat.send("")
  68. }
  69. if (cmd == "Hi") {
  70. MPP.chat.send("Hello @Person")
  71. }
  72. if (cmd == "!abc") {
  73. MPP.chat.send("Abcdefghijklmnopqrstuvwxyz Now I Know My Abcs So Please Stop Using This Command.")
  74. }
  75. if (cmd == "!") {
  76. MPP.chat.send("")
  77. }
  78. if (cmd == "!rankㅤㅤㅤ") {
  79. MPP.chat.send("You rank is Moderator")
  80. }
  81. if (cmd == "RR") {
  82. MPP.chat.send("NGGYU NGLUD NGRYAADY")
  83. }
  84. if (cmd == "!Bitchslaps") {
  85. MPP.chat.send("I Slapped " + msg.a.substring(5).trim() + " So Hard That They Went To Space and back 7 times")
  86. }
  87. if (cmd == "!GoAFK") {
  88. MPP.chat.send("Im Now Going Afk.")
  89. }
  90. if (cmd == "!123") {
  91. MPP.chat.send("Why in the world are you using this command don't know how to count?")
  92. }
  93. if (cmd == "JapanIsHere") {
  94. MPP.chat.send("Your Prob Asking Who Japan Is Well Japan Is My MPP Bestiee For Life")
  95. }
  96. if (cmd == "!bruh") {
  97. MPP.chat.send("BRUH ISTG😂")
  98. }
  99. if (cmd == "!balance") {
  100. MPP.chat.send("Your balance is ( Get a life and earn some cash you poor person. ) ")
  101. }
  102. if (cmd == "!StopAFK") {
  103. MPP.chat.send("Is No Longer Afk")
  104. }
  105. if (cmd == "!rank") {
  106. MPP.chat.send("")
  107. }
  108. // Admin commands.
  109. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command.
  110. if (cmd == "cmd_name") {
  111. MPP.chat.send("Name commands: /changename, /changecolor, /name1, /name2.")
  112. }
  113. }
  114. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command.
  115. if (cmd == "cmd_ban") {
  116. MPP.client.sendArray([{m: 'kickban', _id: msg.a.substring(5).trim(), m: 300}])
  117. MPP.chat.send("Banned.")
  118. }
  119. }
  120. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command.
  121. if (cmd == "cmd_unban") {
  122. MPP.client.sendArray([{m: 'unban', _id: msg.a.substring(7).trim()}])
  123. MPP.chat.send("Unbanned.")
  124. }
  125. }
  126. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command.
  127. if (cmd == "cmd_ub") {
  128. MPP.client.sendArray([{m: 'unban', _id: msg.a.substring(3).trim()}])
  129. MPP.chat.send("Unbanned.")
  130. }
  131. }
  132. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command.
  133. if (cmd == "cmd_rc") {
  134. var color12 = "#000000"; // This _id color.
  135. MPP.client.sendArray([{m: "chset", set: {
  136. color: color12,
  137. color2: color12
  138. }
  139. }])
  140. MPP.chat.send("Seted room color: #000000 (inner) • #000000 (outer).")
  141. }
  142. if (cmd == "/buttfuck") {
  143. MPP.chat.send("You've Been Buttfucked - ~§ķýłēx~ 2022");
  144. }
  145. if (cmd == "!NotBheese") {
  146. MPP.chat.send("!Rickroll");
  147. }
  148. if (cmd == "!name") {
  149. MPP.client.sendArray([{m: "userset", set: {
  150. name: msg.a.substring(12).trim()
  151. }
  152. }])
  153. MPP.chat.send("!cn (Change name ), !name1, !name2 " + msg.a.substring(12).trim())
  154. }
  155. }
  156. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command.
  157. if (cmd == "!cn") {
  158. MPP.client.sendArray([{m: "userset", set: {
  159. name: msg.a.substring(3).trim()
  160. }
  161. }])
  162. MPP.chat.send("Your name changed to: " + msg.a.substring(3).trim())
  163. }
  164. }
  165. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command.
  166. if (cmd == "!changecolor") {
  167. MPP.client.sendArray([{m: "userset", set: {
  168. color: msg.a.substring(13).trim()
  169. }
  170. }])
  171. MPP.chat.send("You color_name changed to: " + msg.a.substring(13).trim())
  172. }
  173. }
  174. if ((adminarray.indexOf(msg.p._id) > - 1) || (msg.p._id == MPP.client.getOwnParticipant()._id)) { // Admin command.
  175. if (cmd == "cmd_cc") {
  176. MPP.client.sendArray([{m: "userset", set: {
  177. color: msg.a.substring(3).trim()
  178. }
  179. }])
  180. MPP.chat.send("You color_name changed to: " + msg.a.substring(3).trim())
  181. }
  182. if (cmd == "!name1") {
  183. MPP.client.sendArray([{m: "userset", set: {
  184. name: "OwO UsaBall 2.0 OwO",
  185. color: "#FFFFFF"
  186. }
  187. }])
  188. }
  189. if (cmd == "!name2") {
  190. MPP.client.sendArray([{m: "userset", set: {
  191. name: "OwOBOTV2 [ oHelp ]",
  192. color: "#add8e6"
  193. }
  194. }])
  195. }
  196. }
  197. // Buy... commands.
  198. if (cmd == "!SYM") {
  199. MPP.chat.send(msg.p.name + " Just Summoned Their Mother On:" + msg.a.substring(5).trim() + ".")
  200. }
  201. if (cmd == "!hug") {
  202. MPP.chat.send(msg.p.name + " Hugged: " + msg.a.substring(5).trim() + ".")
  203. }
  204. if (cmd == "!kill") {
  205. MPP.chat.send(msg.p.name + " killed: " + msg.a.substring(5).trim() + ".")
  206. }
  207. }) /* msg.a response END */;
  208.  
  209. /*
  210. MPP.client.on('participant added', pp => {
  211. MPP.chat.send("Welcome " + pp.name + " to the " + MPP.client.desiredChannelId + "! Type '/info' to info this bot.")
  212. }) /* added response end /*;
  213. */
  214.  
  215. console.log("OwOBotV2 Is Now loaded!");