Facebook
From Joker, 3 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 59
  1. const Discord = require("discord.js")
  2.  
  3. exports.run = async (client, message, args) => {
  4.     if (!message.member.voiceChannel) return message.channel.send("Ses Kanalına Girsene")
  5.     let kullanici = message.mentions.members.first();
  6.     if (!kullanici.voiceChannel) return message.channel.send("Bu Kullanıcı Sesde Değil")
  7.     if (!kullanici) return message.channel.send("Kime Gidicen Moruq")
  8.     if (message.member.voiceChannel.id === kullanici.voiceChannel.id) return message.channel.send("Aynı Kanaldasınız Ya Salak")
  9.     const filter = (reaction, user) => {
  10.         return [':white_check_mark:', ':x:'].includes(reaction.emoji.id) && user.id === kullanici.id;
  11.     };
  12.     let cc = new Discord.MessageEmbed()
  13.         .setColor("BLUE")
  14.         .setDescription(`${kullanici}, ${message.author}  ${kullanici.voiceChannel.name} odasına gelmek istiyor. Kabul Etcenmi?\n Bass Açabilir Dikkatli ol xD`)
  15.             .setFooter('Client Code Abisi')
  16.             .set("")
  17.  
  18.     let mesaj = await message.channel.send(cc)
  19.     await mesaj.react(":white_check_mark:")
  20.     await mesaj.react(":x:")
  21.     mesaj.awaitReactions(filter, {
  22.         max: 1,
  23.         time: 60000,
  24.         errors: ['time']
  25.     }).then(collected => {
  26.         const reaction = collected.first();
  27.         if (reaction.emoji.id === ':white_check_mark:') {
  28.             let cc2 = new Discord.MessageEmbed()
  29.                 .setColor("GREEN")
  30.                 .setDescription(`${kullanici} Hege Karşim`)
  31.             message.channel.send(cc2).then(msg => msg.delete(5000));
  32.            message.member.setVoiceChannel(kullanici.voiceChannel)
  33.         } else {
  34.             let clientcode3 = new Discord.MessageEmbed()
  35.                 .setColor("RED")
  36.                 .setDescription(`${kullanici} Tüh Adam Kabul Etmedi`)
  37.             message.channel.send(clientcode3).then(msg => msg.delete(5000));
  38.         }
  39.     })
  40.  
  41. }
  42.  
  43. exports.conf = {
  44.     enabled: true,
  45.     aliases: ['git'],
  46.     permLevel: 0
  47. };
  48.  
  49. exports.help = {
  50.     name: "git",
  51.     description: "Etiketlediğiniz kullanıcıyı odaya çeker",
  52.     usage: "git @kullanıcı"
  53.  
  54. };