SHARE
TWEET

Untitled

a guest May 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('message', msg => {
  2.     if (msg.author.bot) return;
  3.     if (!msg.content.startsWith(prefix)) return;
  4.     let command = msg.content.split(" ")[0];
  5.     command = command.slice(prefix.length);
  6.     let args = msg.content.split(" ").slice(1);
  7.  
  8.       if(command === "clear") {
  9.           const emoji = client.emojis.find("name", "white_check_mark")
  10.       let textxt = args.slice(0).join("");
  11.       if(msg.member.hasPermission("MANAGE_MESSAGES")) {
  12.       if (textxt == "") {
  13.           msg.delete().then
  14.       msg.channel.send("***```ضع عدد الرسائل التي تريد مسحها 👌```***").then(m => m.delete(3000));
  15.   } else {
  16.       msg.delete().then
  17.       msg.delete().then
  18.       msg.channel.bulkDelete(textxt);
  19.           msg.channel.send("```php\nعدد الرسائل التي تم مسحها: " + textxt + "\n```").then(m => m.delete(3000));
  20.           }    
  21.       }
  22.   }
  23.   });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top