Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.warcounter = function() {
- const Discord = require('discord.js');
- const warcounter = new Discord.Client();
- const token = "token_id_here";
- const PREFIX = '!';
- warcounter.on('disconnect', function(erMsg, code) {
- console.log('----- warcounter.on disconnect error message = disconnected from Discord with code', code, 'for reason:', erMsg, '-----');
- warcounter.connect();
- });
- warcounter.on("error", (e) => console.error(e));
- warcounter.on('message', message => {
- if (message.author.bot) return;
- var args = message.content.toLowerCase().substring(PREFIX.length).split(" ");
- if (!args[1]) {
- message.channel.send("__No Start Power Inputed, Using 200k as default value.__ \n ");
- args[1] = "200";
- }
- var atleastpower = Math.round(args[1] - args[1] * 15 / 100).toFixed(0);
- switch (args[0]) {
- case 'war_counters':
- message.reply("🤖 Usage: !Counter_team [power] \n !counter_avengers, !counter_brawlers, !counter_brotherhood, !counter_defenders, !counter_guardians \n \n !counter_powerarmor, !counter_shield, !counter_spiderverse, !counter_technerva, !counter_ultron \n \n !counter_wakanda, !counter_waravengers \n 🍦 = Soft Counter");
- break;
- case 'counter_avengers':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/y6JcNXtm/Avengers.png [Avengers] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power Needed:** " + atleastpower + "k \n https://i.postimg.cc/tT816wwh/Guardian.png [Guardians] \n https://i.postimg.cc/MGTXFz87/Warvengers.png [WarVengers] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/y6JcNXtm/Avengers.png [Avengers🍦] \n https://i.postimg.cc/D0sSP53R/Mystic-Controllers.png [Mystic Controllers🍦] ```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_brawlers':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/jqGNnnYG/brawlers.png [Brawlers] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/tT816wwh/Guardian.png [Guardians] \n https://i.postimg.cc/MGTXFz87/Warvengers.png [WarVengers] \n https://i.postimg.cc/ydDgksQ1/Shield.png [Shield] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/BZ1P3ZPN/Defenders.png [Defenders🍦] \n https://i.postimg.cc/D0sSP53R/Mystic-Controllers.png [Mystic Controllers🍦] ```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_brotherhood':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/28hWQjz3/broho.png [BrotherHood] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/28hWQjz3/broho.png [BrotherHood] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/BZ1P3ZPN/Defenders.png [Defenders🍦] ```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_defenders':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/BZ1P3ZPN/Defenders.png [Defenders] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/YSqmB1Qm/Power-Armor.png [Power Armor] \n https://i.postimg.cc/ydDgksQ1/Shield.png [Shield] (Operative) \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/BZ1P3ZPN/Defenders.png [Defenders🍦] (MM) \n https://i.postimg.cc/jqGNnnYG/brawlers.png [Brawlers🍦] \n https://i.postimg.cc/13MfBfbR/Wakanda.png [Wakanda🍦] \n https://i.postimg.cc/D0sSP53R/Mystic-Controllers.png [Mystic Controllers🍦] (OR with Spider-Verse Hybrid)```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_guardians':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/tT816wwh/Guardian.png [Guardians] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/YSqmB1Qm/Power-Armor.png [Power Armor] \n https://i.postimg.cc/ydDgksQ1/Shield.png [Shield] \n https://i.postimg.cc/13MfBfbR/Wakanda.png [Wakanda] \n https://i.postimg.cc/28hWQjz3/broho.png [BrotherHood] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/BZ1P3ZPN/Defenders.png [Defenders🍦] \n https://i.postimg.cc/D0sSP53R/Mystic-Controllers.png [Mystic Controllers🍦] ```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'powerarmor':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/YSqmB1Qm/Power-Armor.png [Power Armor] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/YSqmB1Qm/Power-Armor.png [Power Armor] \n https://i.postimg.cc/28hWQjz3/broho.png [BrotherHood] \n https://i.postimg.cc/tT816wwh/Guardian.png [Guardians] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/ydDgksQ1/Shield.png [Shield🍦] \n https://i.postimg.cc/13MfBfbR/Wakanda.png [Wakanda🍦] \n https://i.postimg.cc/MGTXFz87/Warvengers.png [WarVengers🍦] ```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_shield':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/ydDgksQ1/Shield.png [Shield] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/YSqmB1Qm/Power-Armor.png [Power Armor] \n https://i.postimg.cc/28hWQjz3/broho.png [BrotherHood] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/tT816wwh/Guardian.png [Guardians🍦] \n https://i.postimg.cc/ydDgksQ1/Shield.png [Shield🍦] \n https://i.postimg.cc/pXbhLNDv/Spider-Verse.png [Spider-Verse🍦] ```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_spiderverse':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/pXbhLNDv/Spider-Verse.png [Spider-Verse] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/D0sSP53R/Mystic-Controllers.png [Mystic Controllers] \n https://i.postimg.cc/BZ1P3ZPN/Defenders.png [Defenders] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/pXbhLNDv/Spider-Verse.png [Spider-Verse🍦] ```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_technerva':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/7Y3CCBV2/Technerva.png [TechNerva] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/YSqmB1Qm/Power-Armor.png [Power Armor] \n https://i.postimg.cc/28hWQjz3/broho.png [BrotherHood] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/tT816wwh/Guardian.png [Guardians🍦] \n https://i.postimg.cc/ydDgksQ1/Shield.png [Shield🍦] \n https://i.postimg.cc/7Y3CCBV2/Technerva.png [TechNerva🍦] \n https://i.postimg.cc/13MfBfbR/Wakanda.png [Wakanda🍦] \n https://i.postimg.cc/MGTXFz87/Warvengers.png [WarVengers🍦] ```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_ultron':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/52fX8w7k/Ultron.png [Ultron] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/52fX8w7k/Ultron.png [Ultron] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/28hWQjz3/broho.png [BrotherHood🍦] \n (With Venom instead of Mystique)```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_wakanda':
- message.reply(" \n ```☠ **Nemesis Power:** " + args[1] + "k``` \n https://i.postimg.cc/13MfBfbR/Wakanda.png [Wakanda] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/YSqmB1Qm/Power-Armor.png [Power Armor] \n https://i.postimg.cc/28hWQjz3/broho.png [BrotherHood] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/jqGNnnYG/brawlers.png [Brawlers🍦] \n https://i.postimg.cc/ydDgksQ1/Shield.png [Shield🍦]```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- case 'counter_waravengers':
- message.reply("https://i.postimg.cc/MGTXFz87/Warvengers.png [WarVengers] \n ");
- message.channel.send(" 🎯MAIN COUNTERS INCLUDE🎯 \n \n **Atleast Power:** " + atleastpower + "k \n https://i.postimg.cc/YSqmB1Qm/Power-Armor.png [Power Armor] \n https://i.postimg.cc/28hWQjz3/broho.png [BrotherHood] \n ");
- message.channel.send("❎Other Recommend Counters: \n https://i.postimg.cc/ydDgksQ1/Shield.png [Shield🍦]```✴✴✴✴✴✴SOFT COUNTERS✴✴✴✴✴✴```");
- break;
- }
- })
- warcounter.login(token);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement