Help Bot

Help MPP bot.

  1. // ==UserScript==
  2. // @name Help Bot
  3. // @namespace https://greasyfork.org/
  4. // @version 0.1
  5. // @description Help MPP bot.
  6. // @author ʄɛռɨx
  7. // @include *://multiplayerpiano.net/*
  8. // @include *://mppclone.com/*
  9. // @icon http://imageshack.com/a/img923/4396/i1Wmrm.png
  10. // @grant none
  11. // @license GPL
  12. // ==/UserScript==
  13. var adminarray = [];
  14. MPP.client.on("a", function(msg) {
  15. var asgr = msg.a.split(' ');
  16. var cmd = asgr[0];if (cmd == "/help") {
  17. MPP.chat.send("Commands are: /help /name /id /color.")
  18. }
  19. if (cmd == "/name") {
  20. MPP.chat.send("Your name is: " + msg.p.name)
  21. }
  22. if (cmd == "/color") {
  23. MPP.chat.send("Your color is: " + msg.p.color);
  24. }
  25. if (cmd == "/id") {
  26. MPP.chat.send("Your id is: " + msg.p.id)
  27. }}
  28. )