Facebook
From Rusy, 1 Year ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 221
  1. const Discord = require('discord.js')
  2. const ayarlar = require('../ayarlar.json')
  3.  
  4. exports.run = async (client, message, args) => {
  5.     if (!message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(`:x: Bu Komutu Kullanmak ─░├žin **Y├Ânetici** Olmal─▒s─▒n !`);
  6.  
  7.     var link = await client.channels.get(message.channel.id).createInvite()
  8.     var sebep = args.slice(0).join(' ');
  9.     if(!sebep) return message.channel.send(`:x: L├╝tfen Bir Sebep Belirtiniz !`)
  10.    
  11.     const embed = new Discord.RichEmbed()
  12.         .setDescription(`:white_check_mark: Destek Talebiniz Ba┼čar─▒l─▒ ! \n Sahibime Destek Talebi Yollad─▒n─▒z ! \n**Sebebiniz:** \`${sebep}\``)
  13.         .setTimestamp()
  14.         .setFooter(`Destek Talebi`)
  15.         .setColor("RANDOM")
  16.     message.channel.send(embed)
  17.     message.delete()
  18.      
  19.     client.users.get("SAH─░P ─░D").send(new Discord.RichEmbed()                                      
  20.     .setDescription(`\nKullan─▒c─▒ Ad─▒: **${message.author.tag}** \nSunucu Ad─▒: **${message.guild.name}** Davet Linki: [T─▒kla](${link}) \nDestek Sebebi: **${sebep}**`)                                    
  21.     .setTimestamp()                            
  22.     .setTitle(`Talep ─░├žeri─či`)      
  23.     .setFooter(`Destek Talebi`)                            
  24.     .setColor(`RANDOM`)                                    
  25.     .setThumbnail(`${message.author.avatarURL}`))
  26.  
  27. };
  28.  
  29. exports.conf = {
  30.     enabled: true,
  31.     guildOnly: false,
  32.     aliases: ['sahip-destek', 'destek'],
  33.     permLevel: 0
  34. };
  35.  
  36. exports.help = {
  37.     name: 'sahipdestek',
  38.     description: 'Bot Sahibine Destek Talebi G├Ânderir.',
  39.     usage: 'sahip-destek (sebep)'
  40. };