Facebook
From Kedjik, 3 Years ago, written in Plain Text.
This paste is a reply to Untitled from Kedjik - view diff
Embed
Download Paste or View Raw
Hits: 608
  1. const Discord = require("discord.js"),
  2.       db = require("quick.db")
  3.  
  4. exports.run = async (client, message, args ) => {
  5.  
  6.  if (!message.member.hasPermission("MANAGE_ROLES")) {
  7.   const bilgi = new Discord.RichEmbed()
  8.   .setDescription('Bu komutu kullanabilmek için **Rolleri Yönet** yetkisine sahip olmanız gerek.')
  9.   .setColor("0000A0")
  10. return message.channel.sendEmbed(bilgi).then(m => m.delete(150000)); return
  11.        }
  12.  
  13. let sayı = args[0]
  14. if(!sayı) return message.channel.send('Lütfen Bir Sayı Giriniz! Örnek Kullanım -sesli-ayarla 15 saniye')
  15. if(isNaN(args[0])) return message.channel.send('Lütfen Bir Sayı Giriniz! Örnek Kullanım -sesli-ayarla 15 saniye')
  16. let süre = args[1]
  17. if(!süre) return message.channel.send('Lütfen Bir Saat Dilimi Giriniz! Örnek Kullanım -sesli-ayarla 15 saniye')
  18.  
  19. if(args[1] !== "saniye" && "dakika" && "saat" && "gün") return message.channel.send("Sadece saniye , dakika , saat ve gün kullanabilirsin!")
  20. message.channel.send("Başarıyla Ayarlandı!")
  21. db.set(`seslisüredakikası_${message.guild.id}`, sayı)
  22. db.set(`seslisüredilimi_${message.guild.id}`, süre)
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  }
  29.  
  30. exports.conf = {
  31.   enabled: true,
  32.   guildOnly: false,
  33.   aliases: ["sesli-süre-ayarla"],
  34.   permLevel: 0
  35. };
  36.  
  37. exports.help = {
  38.   name: 'sesli-ayarla',
  39.   açıklama: ''
  40. };