Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. MPP.client.on("a", function (msg) {
  2. var args = msg.a.split(" ");
  3. var cmd = args[0].toLowerCase();
  4. args = args.slice(1);
  5. var sendChat = function(msg) { MPP.chat.send(msg) };
  6. var name = msg.p.name;
  7. // add commands here, they must be in the same format. ex: ["cmd", "yourcommand", "anothercommand"]
  8. var commands = ["help", "test", "me","report","family"];
  9. if (cmd === "/r") {
  10. sendChat("/stop");
  11. } if (cmd === "/rr") {
  12. sendChat("/stop being a faggot");
  13. } if (cmd === "/") {
  14. sendChat("/stop faggot");
  15. }
  16. if (cmd === "/p") {
  17. sendChat("/stop");
  18. } if (cmd === "/play") {
  19. sendChat("/stop");
  20. } if (cmd === "/restart") {
  21. sendChat("/stop and learn an instrument you worthless faggot");
  22. } if (cmd === "/l") {
  23. sendChat("/stop and take a moment to drink windex");
  24. } if (cmd === "/random") {
  25. sendChat("/stop and learn an instrument you worthless faggot");
  26. } if (cmd === "!report") {
  27. if (args.length == 0) {
  28. sendChat( name + " reported air lol");
  29. } else {
  30. sendChat("Thanks " + name + ", Your reported has been submit, The FBI are on their way");
  31. } }
  32. if (cmd === "!me") {
  33. if (args.length == 0) {
  34. sendChat(name + " sucks penis lol");
  35. } else {
  36. sendChat("*" + name + " " + msg.a.substring(3).trim() + "*");
  37. }
  38. }
  39. if (cmd === "!help") {
  40. var cmds = "!" + commands[0];
  41. for (i = 1; i < commands.length; i++) {
  42. cmds += ", !" + commands[i];
  43. }
  44. sendChat("Commands are: " + cmds);
  45. }
  46. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement