Facebook
From Prisoners, 3 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 118
  1. const Discord = require('discord.js');
  2.  
  3.  
  4.  
  5.  
  6.  
  7. exports.run = function(client, message, args) {
  8.  
  9.   const sayi = args.slice(0).join('');
  10.  
  11.  
  12.  
  13. if(sayi.length < 1) {
  14.  
  15.   return message.reply("Silmem İçin Bir Miktar Belirt")
  16.  
  17. } else {
  18.  
  19.   message.channel.bulkDelete(sayi);
  20.  
  21. message.channel.send("**" + sayi + "** mesaj sildim").then(msg => {
  22.  
  23.         msg.delete(5000)
  24.  
  25. });
  26.  
  27. }
  28.  
  29.  
  30.  
  31.  
  32.  
  33. };
  34.  
  35.  
  36.  
  37. exports.conf = {
  38.  
  39.   enabled: true,
  40.  
  41.   guildOnly: false,
  42.  
  43.   aliases: [],
  44.  
  45.   permLevel: 0
  46.  
  47. };
  48.  
  49.  
  50.  
  51. exports.help = {
  52.  
  53.   name: 'temizle',
  54.  
  55.   description: 'Belirtilen miktarda mesaj siler',
  56.  
  57.   usage: 'temizle <miktar>'
  58.  
  59. };