Facebook
From sdf, 3 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 44
  1. const snekfetch = require("snekfetch");
  2. snekfetch.get(`https://discordbots.org/api/bots/${client.user.id}/check?userId=${message.author.id}`)
  3. .set("Authorization", client.ayarlar.dbltoken)
  4. .then(response => {
  5. var check = response.body.voted;
  6. if(check == 1) {
  7.  
  8. } else {
  9. let embed = new Discord.RichEmbed()
  10.       .setTitle('HATA')
  11.       .setColor('RANDOM')
  12.       .setDescription(`${client.emojis.get(client.emojiler.hayır)} **Hata**, bu komutu kullanmak için **12 saat aralıkla** **[BURADAN](https://discordbots.org/bot/${client.user.id}/vote)**  botu oylamanız gerekmektedir. Onaylanması **1-4** dakikayı bulabilir, lütfen bekleyin. `)
  13.     message.channel.send(embed)
  14.       return }});