help command

From Daemonium, 2 Weeks ago, written in JavaScript, viewed 26 times.
URL http://codebin.org/view/7ed49d7e Embed
Download Paste or View Raw
  1. if (command === "help") {
  2.     config.mssauth = message.author.id
  3.     const back = "⬅"
  4.     const next = "➡"
  5.     const end = " ❕"
  6.     const funembed = new Discord.RichEmbed().setFooter("fun").setTitle("Fun Commands").addField("8ball:", " This Command Is An 8Ball Usage: .8ball [YesOrNo Question]").addField("Cowsay:", " Moooooo Usage: .cowsay [text]").addField("Insult:", " Instults a given person (Still under develeopment) Usage: .insult [name] ").addField("Bomb:", " Sends A Bomb Usage: .bomb").addField("Clapify:", " Clapifies That Text! Usage: .clapify [text]").addField("Urban:", " Looks Up A String On Urban Dictionary Usage: .Urban [string] ").addField("Fireworks:", " Sends Some Cool Fireworks Usage: .fireworks This was requested by a user").addField("Forcecrush:", " Force Crush! Usage: .forcecrush").addField("Fusrodah:", " Fus.....RO DAH!!! Usage: Call To The Ancients With .fusrodah").addField("Lovecalc:", " Calculates The Chances Of Love Between Any Two Objects! Usage: .lovecalc [object1] [object2] ").addField("Magicify: ", " Turns Your Message Into An Ugly Embed! Usage: .magicify [text] ").addField("Meme:", " Sends Some Dank Memes! Usage: .meme").addField("O:", " Swotchos Oll Vowols On O Strong To 'o' Usogo: .o [toxt] REQUESTED BY USER.... i dont know why though").addField("Reverse:", " Reverses A String Usage: .reverse [words] ").addField("Rickroll:", ".... Usage: .rickroll ").addField("Say:", " Makes The Bot Say What You Say. Usage: .say [words] ").addField("asigh:", " :frowning: Usage: .asigh").addField("Ss", "Compete With Other Users To Set The Status Of My Bot! Usage: .ss").setColor("#660000")
  7.     /////////////////////////
  8.     const econembed = new Discord.RichEmbed().setFooter("Economy(FINALLY)").setTitle("Economy Commands").addField("Bal:", " Shows net worth, cash, and banked cash Usage: .bal", true).addField("Deposit:", " Deposits Cash to bank Usage: .deposit", true).addField("Rob:", " Robs a person. This is in development. make sure to deposit to protect against robbers Usage: .rob @user", true).addField("Leader:", " leaderboard Usage: .leader", true).setColor("#660000")
  9.     /////////////////////////
  10.     const musicembed = new Discord.RichEmbed().setFooter("music").setTitle("Music Commands").addField("Np:", " Shows What Is Now Playing Usage: .np", true).addField("Pause:", " Pauses Music Usage: .pause", true).addField("Play:", " Plays Music. Usage: .play  [song Name], Then Select From List By Typing The Corresponding Number (e.g. For Song 2 Type 2) ", true).addField("Queue:", "Shows Music Queue Usage: .queue", true).addField("Resume:", " Resumes A Paused Song. Usage: .resume", true).addField("Skip:", " Skips A Song Usage: .skip", true).addField("Stop:", " Stops Music From Playing Usage: .stop", true).addField("Vol:", " Volume Usage: .vol [number]", true).setColor("#660000")
  11.     //////////////////////////
  12.     //////////////////////////
  13.     const modembed = new Discord.RichEmbed().setTitle("Moderation:").setFooter("Moderation").addField("Ban:", " Bans A User MOD ONLY Usage: .ban [@user] [Reason]", true).addField("Kick:", " Kicks A Member. Usage: .kick @member [reason]", true).addField("Purge:", " Deletes Messages MOD ONLY Usage: .purge [number<100]", true).addField("Report:", " Reports A Member Usage: .report [@member] [reason]", true).addField("Role:", " Ignore This Command It Is In Maintenance", true).setColor("#660000")
  14.     ////////////////////////
  15.     ////////////////////////
  16.     const ciphembed = new Discord.RichEmbed().setTitle("Ciphers:").setFooter("Ciphers").addField("ttb64: ", "text to base 64 Usage: .ttb64 string", true).addField("b64tt:", " base 64 to text Usage: .b64tt string", true).addField("rotenc[5, 13, 18, and 47]:", " uses either rot 5,13,18, or 47 to encode some text. Usage: .rotenc47 text", true).addField(".rotdec[5, 13, 18, and 47]:", " Uses rot to decode text. Usage: .rotdec47 text", true).addField(".caesarenc:", " enciphers text using caesar. Usage: .caesar [shift] [text] eg:.caesarenc 3 hello, or .caesarenc c hello", true).addField(".caesardec:", " deciphers text using caesar. Usage: .caesardec [shift] [text] eg:.caesardec 3 hello, or .caesardec c hello", true).addField(".vigenc:", " uses vig on text. Usage: .vigenc [key] [hello]", true).addField(".vigdec:", " uses vig on text. Usage: .vigdec [key] [hello]", true).addField(".hexenc:", " turns ascii to hexadecimal Usage: .hexenc string", true).addField(".hexdec:", " converts hexadecimal to ascii Usage: .hexdec string", true).setColor("#660000")
  17.     //////////////////////
  18.     /////////////////////
  19.     const utilembed = new Discord.RichEmbed().setTitle("Utilities:").setFooter("Utils").addField("Uptime:", " Shows Uptime Usage: .uptime", true).addField("Guildlist:", " Shows a list of guilds the bot is in. Usage: .guildlist", true).addField("Userinfo:", " displays info on a user Usage: .userinfo [@user]", true).addField("Botinfo:", " Displays Info On The Bot Usage: .botinfo", true).addField("Bugreport:", " Reports A Bug Directly To The Dev Of The Bot (A.K.A. ME) Usage: .bugreport [Bug]", true).addField("Calc:", " Calculates The Value Of An Expression Usage: .calc [expression E.g. 1+1]", true).addField("Help:", " Ehm, Idk What To Tell You. Usage: How Are You Even Here?", true).addField("Haste:", " Adds A String To Hastebin Usage: .haste [String (A.K.A Words)]", true).addField("Inv:", " Shows Invite Links For My Bot, And The Support Server. Usage: .inv", true).addField("Line:", " Draws The LINE! Usage: .line", true).addField("Ping:", " Pings Places All Around The World Usage: .ping", true).addField("Schedule:", " Schedules A Message. Usage: .schedule [Part 1 Of Message] [Part 2 Of Message] [time]", true).addField("Serverinfo:", " Displays Info On The Server Usage: .serverinfo", true).addField("Timer:", " Sets A Timer. Usage: .timer [time In Ms, S, M, Or H.]", true).addField("Remspace:", " Removes all spaces from a string. Usage: .remspace [text]", true).addField(".gprime:", " gets all prime numbers up to the supplied value. Usage: .gprime number", true).setColor("#660000")
  20.     ///////////////////
  21.     ///////////////////
  22.     const progembed = new Discord.RichEmbed().setTitle("Programming tools:").setFooter("Programming").addField("Batch:", " Obfuscates some batch script. (you will need to make a key list for it.) Usage: .batch [batch code here]").addField("ntl:", " Basic universal obfuscation (this is for the bot dev only. If you can get how it works, then cheers) Usage: .ntl [text]").setColor("#660000")
  23.     ///////////////////
  24.     ///////////////////
  25.     const nsfwembed = new Discord.RichEmbed().setTitle("NSFW:").setFooter("NSFW").addField("Ass:", " Shows Some Ass ;) NSFW ONLY Usage: .ass", true).addField("Bond:", " Bondage NSFW ONLY Usage: .bond", true).addField("Hentai:", " Looks Up Some Hentai Babes For You Weebs Out There Usage: .hentai", true).addField("Nsfw:", " Sends Some Standard NSFW Usage: .nsfw", true).setColor("#660000")
  26.     var pollTitle = await message.channel.send({
  27.         embed: funembed
  28.     })
  29.     await pollTitle.react(back);
  30.     await pollTitle.react(next);
  31.     await pollTitle.react(end);
  32.     const filter = (reaction) = > reaction.emoji.name === '➡';
  33.     const collector = pollTitle.createReactionCollector(filter, {
  34.         time: 60000
  35.     });
  36.  
  37.     collector.on('collect', r = > {
  38.         if (config.mssauth != message.author.id) {
  39.             return
  40.         } else {
  41.             console.log(`Collected $ {
  42.                 r.emoji.name
  43.             }`)
  44.             config.bindex = Math.floor(config.bindex + 1)
  45.             fs.writeFile("./config.json", JSON.stringify(config), function(err) {
  46.                 if (err) return console.log(err);
  47.                 console.log(JSON.stringify(config));
  48.                 console.log('writing to ' + "./config.json");
  49.             });
  50.             if (config.bindex == 0) {
  51.                 pollTitle.edit({
  52.                     embed: funembed
  53.                 });
  54.             }
  55.             if (config.bindex == 1) {
  56.                 pollTitle.edit({
  57.                     embed: musicembed
  58.                 })
  59.             }
  60.             if (config.bindex == 2) {
  61.                 pollTitle.edit({
  62.                     embed: modembed
  63.                 });
  64.             }
  65.             if (config.bindex == 3) {
  66.                 pollTitle.edit({
  67.                     embed: ciphembed
  68.                 })
  69.             }
  70.             if (config.bindex == 4) {
  71.                 pollTitle.edit({
  72.                     embed: utilembed
  73.                 });
  74.             }
  75.             if (config.bindex == 5) {
  76.                 pollTitle.edit({
  77.                     embed: progembed
  78.                 });
  79.             }
  80.             if (config.bindex == 6) {
  81.                 pollTitle.edit({
  82.                     embed: nsfwembed
  83.                 })
  84.             }
  85.             if (config.bindex == 7) {
  86.                 pollTitle.edit({
  87.                     embed: econembed
  88.                 })
  89.             }
  90.             if (config.bindex == 8) {
  91.                 congif.bindex = Math.floor(config.bindex - 1)
  92.             }
  93.         }
  94.     });
  95.     collector.on('end', collected = > {});
  96.  
  97.     const filter1 = (reaction) = > reaction.emoji.name === '⬅';
  98.     const collector1 = pollTitle.createReactionCollector(filter1, {
  99.         time: 60000
  100.     });
  101.     collector1.on('collect', r = > {
  102.         if (config.mssauth != message.author.id) {
  103.             return
  104.         } else {
  105.             console.log(`Collected $ {
  106.                 r.emoji.name
  107.             }`)
  108.             config.bindex = Math.floor(config.bindex - 1)
  109.             if (config.bindex == -1) {
  110.                 config.bindex = Math.floor(config.bindex + 2)
  111.                 fs.writeFile("./config.json", JSON.stringify(config), function(err) {
  112.                     if (err) return console.log(err);
  113.                     console.log(JSON.stringify(config));
  114.                     console.log('writing to ' + "./config.json");
  115.                 })
  116.             }
  117.             fs.writeFile("./config.json", JSON.stringify(config), function(err) {
  118.                 if (err) return console.log(err);
  119.                 console.log(JSON.stringify(config));
  120.                 console.log('writing to ' + "./config.json");
  121.             });
  122.  
  123.             if (config.bindex == 0) {
  124.                 pollTitle.edit({
  125.                     embed: funembed
  126.                 });
  127.             }
  128.             if (config.bindex == 1) {
  129.                 pollTitle.edit({
  130.                     embed: musicembed
  131.                 })
  132.             }
  133.             if (config.bindex == 2) {
  134.                 pollTitle.edit({
  135.                     embed: modembed
  136.                 });
  137.             }
  138.             if (config.bindex == 3) {
  139.                 pollTitle.edit({
  140.                     embed: ciphembed
  141.                 })
  142.             }
  143.             if (config.bindex == 4) {
  144.                 pollTitle.edit({
  145.                     embed: utilembed
  146.                 });
  147.             }
  148.             if (config.bindex == 5) {
  149.                 pollTitle.edit({
  150.                     embed: progembed
  151.                 });
  152.             }
  153.             if (config.bindex == 6) {
  154.                 pollTitle.edit({
  155.                     embed: nsfwembed
  156.                 })
  157.             }
  158.             if (config.bindex == 7) {
  159.                 pollTitle.edit({
  160.                     embed: econembed
  161.                 })
  162.             }
  163.             if (config.bindex == -1) {
  164.                 config.bindex = Math.floor(config.bindex + 2)
  165.             }
  166.         }
  167.     });
  168.     collector1.on('end', collected = > {
  169.  
  170.     });
  171.     message.channel.send(`For updates on the bot, or to see whats new with it, please type.Announcements`);
  172. }

Reply to "help command"

Here you can reply to the paste above