Facebook
From Jittery Gibbon, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 159
  1. const Discord = require("discord.js");
  2. const client = new Discord.Client();
  3. const ms = require("ms");
  4.  
  5. exports.run = async (client, message, args) => {
  6.  
  7.   let user = message.mentions.members.first() || message.guild.members.get(args[0]);
  8.  
  9.   let canlark1 = [8,9,10,11,12,13,14,15,16,17,18,19,20];
  10.   let canlark2 = [8,9,10,11,12,13,14,15,16,17,18,19,20];
  11.   let sonuck1 = Math.floor((Math.random() * canlark1.length));
  12.   let sonuck2 = Math.floor((Math.random() * canlark2.length));
  13.  
  14.   let k1 = 100
  15.   let k2 = 100
  16.  
  17.   let k2mesaj = [`**${message.author.tag}** sert bir atak sergiledi! <:rentfanlucio:693851132132458506>nDarbeyi alan kullanıcı **${user.user.tag}**`,
  18.                   `**${message.author.tag}** tüm gücüyle saldırdı! <:rentfanmccree:693851133441212467>nDarbeyi alan kullanıcı **${user.user.tag}**`,
  19.                   `**${message.author.tag}** inanılmaz şekilde vuruyor! <:rentfanjunkrat:693851129599230042>nDarbeyi alan kullanıcı **${user.user.tag}**`,
  20.                   `**${message.author.tag}** birazcık sakin davrandı ve gücünü koruyor. <:rentfanmei:693851148020613141>nDarbeyi alan kullanıcı **${user.user.tag}**`,
  21.                   `**${message.author.tag}** antrenmanda iyi çalışmış gibi duruyor! <:rentfanmercy:693851150490927154>nDarbeyi alan kullanıcı **${user.user.tag}**`,
  22.                  `**${message.author.tag}** rakibine karşı çok acımasız! <:rentfanhanzo:693851119729901569>nDarbeyi alan kullanıcı **${user.user.tag}**`,];
  23.   let k2mesajsonuc = Math.floor((Math.random() * k2mesaj.length));
  24.  
  25.   let k1mesaj = [`**${user.user.tag}** sert bir atak sergiledi! <:rentfanlucio:693851132132458506>nDarbeyi alan kullanıcı **${message.author.tag}**`,
  26.                   `**${user.user.tag}** tüm gücüyle saldırdı! <:rentfanmccree:693851133441212467>nDarbeyi alan kullanıcı **${message.author.tag}**`,
  27.                   `**${user.user.tag}** inanılmaz şekilde vuruyor! <:rentfanjunkrat:693851129599230042>nDarbeyi alan kullanıcı **${message.author.tag}**`,
  28.                   `**${user.user.tag}** birazcık sakin davrandı ve gücünü koruyor. <:rentfanmei:693851148020613141>nDarbeyi alan kullanıcı **${message.author.tag}**`,
  29.                   `**${user.user.tag}** antrenmanda iyi çalışmış gibi duruyor! <:rentfanmercy:693851150490927154>nDarbeyi alan kullanıcı **${message.author.tag}**`,
  30.                  `**${user.user.tag}** rakibine karşı çok acımasız! <:rentfanhanzo:693851119729901569>nDarbeyi alan kullanıcı **${message.author.tag}**`,];
  31.   let k1mesajsonuc = Math.floor((Math.random() * k1mesaj.length));
  32.  
  33.   const etiketle = new Discord.RichEmbed()
  34.     .setColor("RANDOM")
  35.     .setAuthor(message.author.tag, message.author.avatarURL)
  36.     .setDescription(client.mesajlar.etiketle);
  37.  
  38.   const tabela = new Discord.RichEmbed()
  39.     .setColor("RANDOM")
  40.     .setAuthor("Battle Başladı!")
  41.     .setDescription(`Arena hazırlanıyor lütfen bekleyin <a:loading:698906048278298665>`);
  42.  
  43.   const arena = new Discord.RichEmbed()
  44.     .setColor("RANDOM")
  45.     .setAuthor("Battle Başladı!")
  46.     .setDescription(`${message.author}: ${k1}n${user}: ${k2}`);
  47.  
  48.   if (!user) return message.channel.send(etiketle)
  49.  
  50.  
  51. await message.channel.send(tabela).then((m)=>{
  52.      
  53. setTimeout(function() {
  54. if (k1 < 0 || k1 == 0) {
  55. tabela.setDescription(`${message.author} savası kazandı!`)
  56. }
  57. if (k2 < 0 || k2 == 0) {
  58. tabela.setDescription(`${user} savası kazandı!`)
  59. }
  60. else {
  61. tabela.setDescription(`${message.author} ve ${user} savaş başlasın. <a:rentfanselam:685221270664511509>`)
  62. }
  63. m.edit(tabela)
  64.   }, ms("1000"))
  65.  
  66. setTimeout(function() {
  67. if (k1 < 0 || k1 == 0) {
  68. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  69. }
  70. if (k2 < 0 || k2 == 0) {
  71. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  72. }
  73. else {
  74. tabela.setDescription(`${message.author}: ${k1}n${user}: ${k2}`)
  75. }
  76. m.edit(tabela)
  77.   }, ms("2000"))
  78.  
  79. setTimeout(function() {
  80. k1 = k1 - canlark1[sonuck1]
  81. if (k1 < 0 || k1 == 0) {
  82. k1 = 0;
  83. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  84. }
  85. if (k2 < 0 || k2 == 0) {
  86. k2 = 0;
  87. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  88. }
  89. else {
  90. tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  91. }
  92. m.edit(tabela)
  93.   }, ms("4000"))
  94.  
  95.                                
  96. setTimeout(function() {
  97. k2 = k2 - canlark2[sonuck2]
  98. if (k1 < 0 || k1 == 0) {
  99. k1 = 0;
  100. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  101. }
  102. if (k2 < 0 || k2 == 0) {
  103. k2 = 0;
  104. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  105. }
  106. else {
  107. tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  108. }
  109. m.edit(tabela)
  110.   }, ms("6000"))
  111.  
  112. setTimeout(function() {
  113. k1 = k1 - canlark1[sonuck1]
  114. if (k1 < 0 || k1 == 0) {
  115. k1 = 0;
  116. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  117. }
  118. if (k2 < 0 || k2 == 0) {
  119. k2 = 0;
  120. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  121. }
  122. else {
  123. tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  124. }
  125. m.edit(tabela)
  126.   }, ms("8000"))
  127.  
  128.                                
  129. setTimeout(function() {
  130. k2 = k2 - canlark2[sonuck2]
  131. if (k1 < 0 || k1 == 0) {
  132. k1 = 0;
  133. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  134. }
  135. if (k2 < 0 || k2 == 0) {
  136. k2 = 0;
  137. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  138. }
  139. else {
  140. tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  141. }
  142. m.edit(tabela)
  143.   }, ms("10000"))
  144.  
  145. setTimeout(function() {
  146. k1 = k1 - canlark1[sonuck1]
  147. if (k1 < 0 || k1 == 0) {
  148. k1 = 0;
  149. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  150. }
  151. if (k2 < 0 || k2 == 0) {
  152. k2 = 0;
  153. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  154. }
  155. else {
  156. tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  157. }
  158. m.edit(tabela)
  159.   }, ms("12000"))
  160.  
  161.                                
  162. setTimeout(function() {
  163. k2 = k2 - canlark2[sonuck2]
  164. if (k1 < 0 || k1 == 0) {
  165. k1 = 0;
  166. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  167. }
  168. if (k2 < 0 || k2 == 0) {
  169. k2 = 0;
  170. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  171. }
  172. else {
  173. tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  174. }
  175. m.edit(tabela)
  176.   }, ms("14000"))
  177.  
  178. setTimeout(function() {
  179. k1 = k1 - canlark1[sonuck1]
  180. if (k1 < 0 || k1 == 0) {
  181. k1 = 0;
  182. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  183. }
  184. if (k2 < 0 || k2 == 0) {
  185. k2 = 0;
  186. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  187. }
  188. else {
  189. tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  190. }
  191. m.edit(tabela)
  192.   }, ms("16000"))
  193.  
  194.                                
  195. setTimeout(function() {
  196. k2 = k2 - canlark2[sonuck2]
  197. if (k1 < 0 || k1 == 0) {
  198. k1 = 0;
  199. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  200. }
  201. if (k2 < 0 || k2 == 0) {
  202. k2 = 0;
  203. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  204. }
  205. else {
  206. tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  207. }
  208. m.edit(tabela)
  209.   }, ms("18000"))
  210.  
  211. setTimeout(function() {
  212. k1 = k1 - canlark1[sonuck1]
  213. if (k1 < 0 || k1 == 0) {
  214. k1 = 0;
  215. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  216. }
  217. if (k2 < 0 || k2 == 0) {
  218. k2 = 0;
  219. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  220. }
  221. else {
  222. tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  223. }
  224. m.edit(tabela)
  225.   }, ms("20000"))
  226.  
  227.                                
  228. setTimeout(function() {
  229. k2 = k2 - canlark2[sonuck2]
  230. if (k1 < 0 || k1 == 0) {
  231. k1 = 0;
  232. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  233. }
  234. if (k2 < 0 || k2 == 0) {
  235. k2 = 0;
  236. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  237. }
  238. else {
  239. tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  240. }
  241. m.edit(tabela)
  242.   }, ms("22000"))
  243.  
  244. setTimeout(function() {
  245. k1 = k1 - canlark1[sonuck1]
  246. if (k1 < 0 || k1 == 0) {
  247. k1 = 0;
  248. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  249. }
  250. if (k2 < 0 || k2 == 0) {
  251. k2 = 0;
  252. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  253. }
  254. else {
  255. tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  256. }
  257. m.edit(tabela)
  258.   }, ms("24000"))
  259.  
  260.                                
  261. setTimeout(function() {
  262. k2 = k2 - canlark2[sonuck2]
  263. if (k1 < 0 || k1 == 0) {
  264. k1 = 0;
  265. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  266. }
  267. if (k2 < 0 || k2 == 0) {
  268. k2 = 0;
  269. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  270. }
  271. else {
  272. tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  273. }
  274. m.edit(tabela)
  275.   }, ms("26000"))
  276.  
  277. setTimeout(function() {
  278. k1 = k1 - canlark1[sonuck1]
  279. if (k1 < 0 || k1 == 0) {
  280. k1 = 0;
  281. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  282. }
  283. if (k2 < 0 || k2 == 0) {
  284. k2 = 0;
  285. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  286. }
  287. else {
  288. tabela.setDescription(`${k1mesaj[k1mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  289. }
  290. m.edit(tabela)
  291.   }, ms("28000"))
  292.  
  293.                                
  294. setTimeout(function() {
  295. k2 = k2 - canlark2[sonuck2]
  296. if (k1 < 0 || k1 == 0) {
  297. k1 = 0;
  298. tabela.setDescription(`${message.author} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${user} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  299. }
  300. if (k2 < 0 || k2 == 0) {
  301. k2 = 0;
  302. tabela.setDescription(`${user} maçı kazandı! <a:rentfanoyna:698924488665989133>nn${message.author} maçı kaybetti. <:rentfanmoira:693851152684679199>`)
  303. }
  304. else {
  305. tabela.setDescription(`${k2mesaj[k2mesajsonuc]}nn${message.author}: ${k1}n${user}: ${k2}`)
  306. }
  307. m.edit(tabela)
  308.   }, ms("30000"))
  309.  
  310. })                                
  311. };
  312.  
  313. exports.conf = {
  314.   enabled: true,
  315.   guildOnly: true,
  316.   aliases: [],
  317.   permLevel: 0
  318. };
  319.  
  320. exports.help = {
  321.   name: "battle",
  322.   description: "",
  323.   usage: ""
  324. };
  325.