Advertisement
AEAEAEAEarray

BRO 67 MPP BOT

Sep 30th, 2021
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * ------------Copyright disclaimer-----------------
  3.  * Made by BRO 67
  4.  * Customised By Anonydiamond, Hyperflame
  5.  */
  6.  
  7. const send = MPP.chat.send;
  8. const prefix = "@"
  9. var args;
  10. var a;
  11. var cmd;
  12. var b;
  13.  
  14. MPP.client.on('a', msg=>{
  15.   args = msg.a.match(/\w+/g);
  16.   a = msg.a.split(' ');
  17.   cmd = msg.a.substring(0).trim();
  18.   b = a[0];
  19.  
  20.   if (cmd === prefix+"help") {
  21.     send(`Commands: ${prefix}help ${prefix}about ${prefix}say ${prefix}reverse`);
  22.   }
  23.  
  24.   if (cmd === prefix+"about") {
  25.     send("Made by: BRO 67");
  26.     send("Customised By: Anonydiamond");
  27.   }
  28.  
  29.   if (cmd === prefix+"say") {
  30.     let input = msg.a.substring(5).trim();
  31.     if (!input) return send("Please enter a messageto say. usage: say [message]");
  32.  
  33.     send(`Say: ${input}`);
  34.   }
  35.  
  36.   if (cmd === prefix+"reverse") {
  37.     let input = msg.a.substring(9).trim();
  38.     let revtext = input.split('').reverse().join('');
  39.     if (!input) return send("please enter a text to reverse. Usage: rev [text]");
  40.  
  41.     send(`Reversed: ${revtext}`);
  42.   }
  43. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement