Bot-Alex 3

mini bot MPP

当前为 2023-11-10 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Bot-Alex 3
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description mini bot MPP
  6. // @author Alex-Bot
  7. // @match *https://multiplayerpiano.net/?c*
  8. // @match *https://mpp.hyye.xyz/?c*
  9. // @license MIT
  10. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. MPP.client.on('a', function(msg) {
  15. let cmd = msg.a;
  16.  
  17. if (cmd == ',help') {
  18. MPP.chat.send('Commands: ,help - ,about - ,myColor - ,myId')
  19. MPP.chat.send('Fun: ,UwU - ,OwO - ,123')
  20. }
  21. if (cmd == ',myColor') {
  22. MPP.chat.send(msg.p.color + 'Your color')
  23. }
  24. if (cmd == ',myId') {
  25. MPP.chat.send(msg.p.id + 'Your ID')
  26. }
  27. if (cmd == ',UwU') {
  28. MPP.chat.send('OwO')
  29. }
  30. if (cmd == ',OwO') {
  31. MPP.chat.send('UwU')
  32. }
  33. if (cmd == ',123') {
  34. MPP.chat.send('456')
  35. }
  36. if (cmd == ',about') {
  37. MPP.chat.send('Data: 10.11.2023')
  38. MPP.chat.send('About: Bot-Alex')
  39. }
  40. })