- const Discord = require("discord.js");
- const client = new Discord.Client();
- const ms = require("ms");
- exports.run = async (client, message, args) => {
- let user = message.mentions.members.first() || message.guild.members.get(args[0]);
- let canlark1 = [8,9,10,11,12,13,14,15,16,17,18,19,20];
- let canlark2 = [8,9,10,11,12,13,14,15,16,17,18,19,20];
- let sonuck1 = Math.floor((Math.random() * canlark1.length));
- let sonuck2 = Math.floor((Math.random() * canlark2.length));
- let k1 = 100
- let k2 = 100
- let k2mesaj = [`**${message.author.tag}** sert bir atak sergiledi! <:rentfanlucio:693851132132458506>nDarbeyi alan kullanıcı **${user.user.tag}**`,
- `**${message.author.tag}** tüm gücüyle saldırdı! <:rentfanmccree:693851133441212467>nDarbeyi alan kullanıcı **${user.user.tag}**`,
- `**${message.author.tag}** inanılmaz şekilde vuruyor! <:rentfanjunkrat:693851129599230042>nDarbeyi alan kullanıcı **${user.user.tag}**`,
- `**${message.author.tag}** birazcık sakin davrandı ve gücünü koruyor. <:rentfanmei:693851148020613141>nDarbeyi alan kullanıcı **${user.user.tag}**`,
- `**${message.author.tag}** antrenmanda iyi çalışmış gibi duruyor! <:rentfanmercy:693851150490927154>nDarbeyi alan kullanıcı **${user.user.tag}**`,
- `**${message.author.tag}** rakibine karşı çok acımasız! <:rentfanhanzo:693851119729901569>nDarbeyi alan kullanıcı **${user.user.tag}**`,];
- let k2mesajsonuc = Math.floor((Math.random() * k2mesaj.length));
- let k1mesaj = [`**${user.user.tag}** sert bir atak sergiledi! <:rentfanlucio:693851132132458506>nDarbeyi alan kullanıcı **${message.author.tag}**`,
- `**${user.user.tag}** tüm gücüyle saldırdı! <:rentfanmccree:693851133441212467>nDarbeyi alan kullanıcı **${message.author.tag}**`,
- `**${user.user.tag}** inanılmaz şekilde vuruyor! <:rentfanjunkrat:693851129599230042>nDarbeyi alan kullanıcı **${message.author.tag}**`,
- `**${user.user.tag}** birazcık sakin davrandı ve gücünü koruyor. <:rentfanmei:693851148020613141>nDarbeyi alan kullanıcı **${message.author.tag}**`,
- `**${user.user.tag}** antrenmanda iyi çalışmış gibi duruyor! <:rentfanmercy:693851150490927154>nDarbeyi alan kullanıcı **${message.author.tag}**`,
- `**${user.user.tag}** rakibine karşı çok acımasız! <:rentfanhanzo:693851119729901569>nDarbeyi alan kullanıcı **${message.author.tag}**`,];
- let k1mesajsonuc = Math.floor((Math.random() * k1mesaj.length));
- const etiketle = new Discord.RichEmbed()
- .setColor("RANDOM")
- .setAuthor(message.author.tag, message.author.avatarURL)
- .setDescription(client.mesajlar.etiketle);
- const tabela = new Discord.RichEmbed()
- .setColor("RANDOM")
- .setAuthor("Battle Başladı!")
- .setDescription(`Arena hazırlanıyor lütfen bekleyin <a:loading:698906048278298665>`);
- const arena = new Discord.RichEmbed()
- .setColor("RANDOM")
- .setAuthor("Battle Başladı!")
- .setDescription(`${message.author}: ${k1}n${user}: ${k2}`);
- if (!user) return message.channel.send(etiketle)
- await message.channel.send(tabela).then((m)=>{
- setTimeout(function() {
- if (k1 < 0 || k1 == 0) {
- tabela.setDescription(`${message.author} savası kazandı!`)
- }
- if (k2 < 0 || k2 == 0) {
- tabela.setDescription(`${user} savası kazandı!`)
- }
- else {
- tabela.setDescription(`${message.author} ve ${user} savaş başlasın. <a:rentfanselam:685221270664511509>`)
- }
- m.edit(tabela)
- }, ms("1000"))
- setTimeout(function() {
- if (k1 < 0 || k1 == 0) {
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("2000"))
- setTimeout(function() {
- k1 = k1 - canlark1[sonuck1]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("4000"))
- setTimeout(function() {
- k2 = k2 - canlark2[sonuck2]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("6000"))
- setTimeout(function() {
- k1 = k1 - canlark1[sonuck1]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("8000"))
- setTimeout(function() {
- k2 = k2 - canlark2[sonuck2]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("10000"))
- setTimeout(function() {
- k1 = k1 - canlark1[sonuck1]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("12000"))
- setTimeout(function() {
- k2 = k2 - canlark2[sonuck2]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("14000"))
- setTimeout(function() {
- k1 = k1 - canlark1[sonuck1]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("16000"))
- setTimeout(function() {
- k2 = k2 - canlark2[sonuck2]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("18000"))
- setTimeout(function() {
- k1 = k1 - canlark1[sonuck1]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("20000"))
- setTimeout(function() {
- k2 = k2 - canlark2[sonuck2]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("22000"))
- setTimeout(function() {
- k1 = k1 - canlark1[sonuck1]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("24000"))
- setTimeout(function() {
- k2 = k2 - canlark2[sonuck2]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("26000"))
- setTimeout(function() {
- k1 = k1 - canlark1[sonuck1]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("28000"))
- setTimeout(function() {
- k2 = k2 - canlark2[sonuck2]
- if (k1 < 0 || k1 == 0) {
- k1 = 0;
- tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- if (k2 < 0 || k2 == 0) {
- k2 = 0;
- tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
- }
- else {
- tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
- }
- m.edit(tabela)
- }, ms("30000"))
- })
- };
- exports.conf = {
- enabled: true,
- guildOnly: true,
- aliases: [],
- permLevel: 0
- };
- exports.help = {
- name: "battle",
- description: "",
- usage: ""
- };