Atam Komut Modülü

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üye
Katılım
28 Şub 2019
Mesajlar
40
Tepki puanı
5
Yaş
48
7 HİZMET YILI
Kendi yaptığım atam modü daha yeni bitirdim sizlerle paylaşmak istedim komutlara atam.js Kanal_ID yazan kısa hangi kanalda resimleri yayınlayacaksanız oranın Kanal id sini yazın hayırlı olsun
Kod:
const Discord = require('discord.js');

exports.run = function(client, message, args) {
  let [sayi, uzanti] = args.join(" ").split(" ")

  if(message.channel.id === "Kanal_ID "){
    if(!sayi) return message.channel.send({embed: {
    color: Math.floor(Math.random() * (0xFFFFFF + 1)),
    description: ('**Bir sayı girmelisin.\n Örnek: !!atam 1 gif !!atam 1 jpg\n Gif uzantısı için 1 den 5 e kadar bir sayı giriniz...\n Jpg uzantısı için 1 den 309 a kadar bir sayı giriniz...**'),
}})
  if(!uzanti) return message.channel.send({embed: {
  color: Math.floor(Math.random() * (0xFFFFFF + 1)),
  description: ('**Bir uzantı girmelisin.\n Örnek: !!atam 1 gif !!atam 1 jpg**')
}})
  if(uzanti === "gif" || uzanti === "jpg"){
    if(uzanti === "gif"){
    const atam = new Discord.RichEmbed()
    .setAuthor("Atam ❤️ \n")
    .setColor(0x00AE86)
    .setImage("https://hayalci.000webhostapp.com/Resimler/Atatürk/" + sayi + ".gif")
    .setFooter("2019 | HaYaLci™", "")
    message.channel.send(atam);
    }
    if(uzanti === "jpg"){
    const atam = new Discord.RichEmbed()
    .setAuthor("Atam ❤️ \n")
    .setColor(0x00AE86)
    .setImage("https://hayalci.000webhostapp.com/Resimler/Atatürk/" + sayi + ".jpg")
    .setFooter("2019 | HaYaLci™", "")
    message.channel.send(atam);
  }
  }else{message.channel.send("**Lütfen doğru dosya uzantısı giriniz. Örnek: gif veya jpg**")}
  }else{
  message.channel.send({embed: {
color: Math.floor(Math.random() * (0xFFFFFF + 1)),
description: ('**Bu kanal Atatürk kanalı değil!**')
}})
  }
};

exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: ["atam"],
  permLevel: 0
};

exports.help = {
  name: '!!atam Mustafa Kemal Atatürk.',
  kategori: "yardım",
  description: 'Botun Atatürk  Sistemi.',
  usage: 'atam'
};
 
Słyszę, słyszę letni powiew.
Kurucu
Katılım
20 Haz 2015
Mesajlar
7,666
Çözümler
136
Tepki puanı
20,724
Ödüller
25
10 HİZMET YILI
Gayet güzel, ellerine sağlık
 
Varsa Ötesi Onuda Yaşarız
Onaylı Üye
Katılım
5 Nis 2019
Mesajlar
107
Tepki puanı
36
7 HİZMET YILI
Ellerine sağlık üstad
 
⭐ Perfo ⭐
Ultra Üye
Katılım
4 Haz 2018
Mesajlar
1,544
Tepki puanı
1,384
Ödüller
10
8 HİZMET YILI
Eve geçtiğim zaman bunu kullanacağım, ellerine sağlık dostum.
 
Üye
Katılım
28 Şub 2019
Mesajlar
40
Tepki puanı
5
Yaş
48
7 HİZMET YILI
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...