Facebook
From BIGGZ, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 89
  1. const Discord = require('discord.js');
  2. const ayarlar = require('../ayarlar.json')
  3. const prefix = ayarlar.prefix
  4. const generator = require('generate-password');
  5.  
  6.  
  7. exports.run = function(client, message, args) {
  8.     var uzunluk = args.slice(0).join(' ');
  9.  
  10.     if (!uzunluk) return message.reply(`Bir uzunluk belirt. Doğru Kullanım **${prefix}şifre <uzunluk>**`)
  11.  
  12.  
  13.   var password = generator.generateMultiple(1, {
  14.     length: uzunluk,
  15.     uppercase: false
  16.  
  17. });
  18.  
  19.     message.author.send( `**${uzunluk}**` + ' Uzunluğunda Şifre : ' + `**${password}**`);
  20. };  
  21.  
  22. exports.conf = {
  23.   enabled: true,
  24.   guildOnly: true,
  25.   aliases: [],
  26.   permLevel: 0
  27. };
  28.  
  29. exports.help = {
  30.   name: 'şifre',
  31.   description: 'Rastgele bir şifre oluşturur.',
  32.   usage: 'şifre <uzunluk>'
  33. };