Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * ------------Copyright disclaimer-----------------
- * Made by BRO 67
- * Customised By Anonydiamond, Hyperflame
- */
- const send = MPP.chat.send;
- const prefix = "@"
- var args;
- var a;
- var cmd;
- var b;
- MPP.client.on('a', msg=>{
- args = msg.a.match(/\w+/g);
- a = msg.a.split(' ');
- cmd = msg.a.substring(0).trim();
- b = a[0];
- if (cmd === prefix+"help") {
- send(`Commands: ${prefix}help ${prefix}about ${prefix}say ${prefix}reverse`);
- }
- if (cmd === prefix+"about") {
- send("Made by: BRO 67");
- send("Customised By: Anonydiamond");
- }
- if (cmd === prefix+"say") {
- let input = msg.a.substring(5).trim();
- if (!input) return send("Please enter a messageto say. usage: say [message]");
- send(`Say: ${input}`);
- }
- if (cmd === prefix+"reverse") {
- let input = msg.a.substring(9).trim();
- let revtext = input.split('').reverse().join('');
- if (!input) return send("please enter a text to reverse. Usage: rev [text]");
- send(`Reversed: ${revtext}`);
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement