diff --git a/commands/avataredit/3000years.js b/commands/avataredit/3000years.js index a9f01569..965df17f 100644 --- a/commands/avataredit/3000years.js +++ b/commands/avataredit/3000years.js @@ -1,5 +1,5 @@ const commando = require('discord.js-commando'); -const Jimp = require("jimp"); +const Jimp = require('jimp'); module.exports = class YearsCommand extends commando.Command { constructor(Client) { @@ -10,7 +10,7 @@ module.exports = class YearsCommand extends commando.Command { ], group: 'avataredit', memberName: '3000years', - description: "It's been 3000 years... (;3000years @User)", + description: 'It\'s been 3000 years... (;3000years @User)', examples: [';3000years @user'], args: [{ key: 'user', @@ -27,11 +27,11 @@ module.exports = class YearsCommand extends commando.Command { console.log(`[Command] ${message.content}`); const user = args.user; let userAvatar = user.displayAvatarURL; - userAvatar = userAvatar.replace(".jpg", ".png"); - userAvatar = userAvatar.replace(".gif", ".png"); + userAvatar = userAvatar.replace('.jpg', '.png'); + userAvatar = userAvatar.replace('.gif', '.png'); let images = []; images.push(Jimp.read(userAvatar)); - images.push(Jimp.read("./images/3000years.png")); + images.push(Jimp.read('./images/3000years.png')); const [avatar, years] = await Promise.all(images); avatar.resize(200, 200); years.blit(avatar, 461, 127); diff --git a/commands/avataredit/beautiful.js b/commands/avataredit/beautiful.js index 67a6a46b..2c7ebfc0 100644 --- a/commands/avataredit/beautiful.js +++ b/commands/avataredit/beautiful.js @@ -1,5 +1,5 @@ const commando = require('discord.js-commando'); -const Jimp = require("jimp"); +const Jimp = require('jimp'); module.exports = class BeautifulCommand extends commando.Command { constructor(Client) { @@ -27,11 +27,11 @@ module.exports = class BeautifulCommand extends commando.Command { console.log(`[Command] ${message.content}`); const user = args.user; let userAvatar = user.displayAvatarURL; - userAvatar = userAvatar.replace(".jpg", ".png"); - userAvatar = userAvatar.replace(".gif", ".png"); + userAvatar = userAvatar.replace('.jpg', '.png'); + userAvatar = userAvatar.replace('.gif', '.png'); let images = []; images.push(Jimp.read(userAvatar)); - images.push(Jimp.read("./images/beautiful.jpg")); + images.push(Jimp.read('./images/beautiful.jpg')); const [avatar, beautiful] = await Promise.all(images); avatar.resize(200, 200); beautiful.blit(avatar, 432, 42); diff --git a/commands/avataredit/bobross.js b/commands/avataredit/bobross.js index d62ff448..6c6adf50 100644 --- a/commands/avataredit/bobross.js +++ b/commands/avataredit/bobross.js @@ -1,5 +1,5 @@ const commando = require('discord.js-commando'); -const Jimp = require("jimp"); +const Jimp = require('jimp'); module.exports = class BobRossCommand extends commando.Command { constructor(Client) { @@ -11,7 +11,7 @@ module.exports = class BobRossCommand extends commando.Command { ], group: 'avataredit', memberName: 'bobross', - description: "Make Bob Ross draw your avatar. (;bobross @User)", + description: 'Make Bob Ross draw your avatar. (;bobross @User)', examples: [';bobross @User'], args: [{ key: 'user', @@ -28,12 +28,12 @@ module.exports = class BobRossCommand extends commando.Command { console.log(`[Command] ${message.content}`); const user = args.user; let userAvatar = user.displayAvatarURL; - userAvatar = userAvatar.replace(".jpg", ".png"); - userAvatar = userAvatar.replace(".gif", ".png"); + userAvatar = userAvatar.replace('.jpg', '.png'); + userAvatar = userAvatar.replace('.gif', '.png'); let images = []; images.push(Jimp.read(userAvatar)); - images.push(Jimp.read("./images/BobRoss.png")); - images.push(Jimp.read("./images/BlankWhite.png")); + images.push(Jimp.read('./images/BobRoss.png')); + images.push(Jimp.read('./images/BlankWhite.png')); const [avatar, bob, nothing] = await Promise.all(images); avatar.rotate(2); avatar.resize(300, 300); diff --git a/commands/avataredit/rip.js b/commands/avataredit/rip.js index 6d9752d5..65486284 100644 --- a/commands/avataredit/rip.js +++ b/commands/avataredit/rip.js @@ -1,5 +1,5 @@ const commando = require('discord.js-commando'); -const Jimp = require("jimp"); +const Jimp = require('jimp'); module.exports = class RIPCommand extends commando.Command { constructor(Client) { @@ -28,11 +28,11 @@ module.exports = class RIPCommand extends commando.Command { console.log(`[Command] ${message.content}`); const user = args.user; let userAvatar = user.displayAvatarURL; - userAvatar = userAvatar.replace(".jpg", ".png"); - userAvatar = userAvatar.replace(".gif", ".png"); + userAvatar = userAvatar.replace('.jpg', '.png'); + userAvatar = userAvatar.replace('.gif', '.png'); let images = []; images.push(Jimp.read(userAvatar)); - images.push(Jimp.read("./images/gravestone.jpg")); + images.push(Jimp.read('./images/gravestone.jpg')); const [avatar, gravestone] = await Promise.all(images); avatar.resize(200, 200); gravestone.blit(avatar, 60, 65); diff --git a/commands/avataredit/steamcard.js b/commands/avataredit/steamcard.js index 3e27b2e6..af9a0879 100644 --- a/commands/avataredit/steamcard.js +++ b/commands/avataredit/steamcard.js @@ -1,5 +1,5 @@ const commando = require('discord.js-commando'); -const Jimp = require("jimp"); +const Jimp = require('jimp'); module.exports = class SteamCardCommand extends commando.Command { constructor(Client) { @@ -10,7 +10,7 @@ module.exports = class SteamCardCommand extends commando.Command { ], group: 'avataredit', memberName: 'steamcard', - description: "Put an avatar on a Steam Card. (;steamcard @User)", + description: 'Put an avatar on a Steam Card. (;steamcard @User)', examples: [';steamcard @user'], guildOnly: true, args: [{ @@ -29,12 +29,12 @@ module.exports = class SteamCardCommand extends commando.Command { const user = args.user; const userDisplayName = message.guild.member(args.user).displayName; let userAvatar = user.displayAvatarURL; - userAvatar = userAvatar.replace(".jpg", ".png"); - userAvatar = userAvatar.replace(".gif", ".png"); + userAvatar = userAvatar.replace('.jpg', '.png'); + userAvatar = userAvatar.replace('.gif', '.png'); let images = []; images.push(Jimp.read(userAvatar)); - images.push(Jimp.read("./images/SteamCard.png")); - images.push(Jimp.read("./images/SteamCardBlank.png")); + images.push(Jimp.read('./images/SteamCard.png')); + images.push(Jimp.read('./images/SteamCardBlank.png')); const [avatar, steamcard, nothing] = await Promise.all(images); const font = await Jimp.loadFont(Jimp.FONT_SANS_32_WHITE); avatar.resize(450, 450); diff --git a/commands/botinfo/info.js b/commands/botinfo/info.js index 2a3780b5..8cf28ce2 100644 --- a/commands/botinfo/info.js +++ b/commands/botinfo/info.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); const Discord = require('discord.js'); -const config = require("../../config.json"); +const config = require('../../config.json'); const moment = require('moment'); require('moment-duration-format'); @@ -35,7 +35,7 @@ module.exports = class InfoCommand extends commando.Command { .setThumbnail(this.client.user.avatarURL) .setURL('http://dragonfire535.weebly.com/xiaobot.html') .addField('Commands', - "There are a variety of commands XiaoBot can use! Use ';help' to view a list of all commands!") + 'There are a variety of commands XiaoBot can use! Use `;help` to view a list of all commands!') .addField('Servers', `${this.client.guilds.size} / ${guilds.reduce((prev, val) => prev + val, 0)}`, true) .addField('Shards', @@ -43,9 +43,9 @@ module.exports = class InfoCommand extends commando.Command { .addField('Commands', config.commandCount, true) .addField('Owner', - "dragonfire535#8081", true) + 'dragonfire535#8081', true) .addField('Source Code', - "[View Here](https://github.com/dragonfire535/xiaobot)", true) + '[View Here](https://github.com/dragonfire535/xiaobot)', true) .addField('Memory Usage', `${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)}MB`, true) .addField('Uptime', @@ -55,17 +55,17 @@ module.exports = class InfoCommand extends commando.Command { .addField('Voice Connections', `${this.client.voiceConnections.size} / ${vCConnections.reduce((prev, val) => prev + val, 0)}`, true) .addField('Library', - "[discord.js](https://discord.js.org/#/) / [commando](https://github.com/Gawdl3y/discord.js-commando)", true) + '[discord.js](https://discord.js.org/#/) / [commando](https://github.com/Gawdl3y/discord.js-commando)', true) .addField('Modules', - "[pirate-speak](https://github.com/mikewesthad/pirate-speak), [google-translate-api](https://github.com/matheuss/google-translate-api), [zalgoize](https://github.com/clux/zalgolize), [hepburn](https://github.com/lovell/hepburn), [string-to-binary](https://www.npmjs.com/package/string-to-binary), [roman-numeral-converter-mmxvi](https://github.com/Cein-Markey/roman-numeral-conversion-library), [cowsay](https://github.com/piuccio/cowsay), [morse](https://github.com/ecto/morse), [superagent](https://github.com/visionmedia/superagent), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [opusscript](https://github.com/abalabahaha/opusscript), [jimp](https://github.com/oliver-moran/jimp), [cheerio](https://cheerio.js.org/), [sherlockjs](https://github.com/maytis/sherlockjs)") + '[pirate-speak](https://github.com/mikewesthad/pirate-speak), [google-translate-api](https://github.com/matheuss/google-translate-api), [zalgoize](https://github.com/clux/zalgolize), [hepburn](https://github.com/lovell/hepburn), [string-to-binary](https://www.npmjs.com/package/string-to-binary), [roman-numeral-converter-mmxvi](https://github.com/Cein-Markey/roman-numeral-conversion-library), [cowsay](https://github.com/piuccio/cowsay), [morse](https://github.com/ecto/morse), [superagent](https://github.com/visionmedia/superagent), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [opusscript](https://github.com/abalabahaha/opusscript), [jimp](https://github.com/oliver-moran/jimp), [cheerio](https://cheerio.js.org/), [sherlockjs](https://github.com/maytis/sherlockjs)') .addField('APIs', - "[Wattpad API](https://developer.wattpad.com/docs/api), [Wordnik API](http://developer.wordnik.com/docs.html), [osu! API](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices API](http://docs.yugiohprices.apiary.io/#), [YouTube Data API](https://developers.google.com/youtube/v3/), [Yoda Speak API](https://market.mashape.com/ismaelc/yoda-speak), [Discord Bots API](https://bots.discord.pw/api), [Today in History API](http://history.muffinlabs.com/#api), [jService API](http://jservice.io/), [Strawpoll API](https://github.com/strawpoll/strawpoll/wiki/API), [Urban Dictionary API](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB API](http://www.omdbapi.com/), [Yahoo Weather API](https://developer.yahoo.com/weather/), [iTunes Store Search API](https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/)") + '[Wattpad API](https://developer.wattpad.com/docs/api), [Wordnik API](http://developer.wordnik.com/docs.html), [osu! API](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices API](http://docs.yugiohprices.apiary.io/#), [YouTube Data API](https://developers.google.com/youtube/v3/), [Yoda Speak API](https://market.mashape.com/ismaelc/yoda-speak), [Discord Bots API](https://bots.discord.pw/api), [Today in History API](http://history.muffinlabs.com/#api), [jService API](http://jservice.io/), [Strawpoll API](https://github.com/strawpoll/strawpoll/wiki/API), [Urban Dictionary API](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB API](http://www.omdbapi.com/), [Yahoo Weather API](https://developer.yahoo.com/weather/), [iTunes Store Search API](https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/)') .addField('Other Credit', - "[Heroku](https://www.heroku.com/), [Cloud9](https://c9.io/), [heroku-buildpack-ffmpeg-latest](https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest)") + '[Heroku](https://www.heroku.com/), [Cloud9](https://c9.io/), [heroku-buildpack-ffmpeg-latest](https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest)') .addField('My Server', - "[Click Here to Join!](https://discord.gg/fqQF8mc)") + '[Click Here to Join!](https://discord.gg/fqQF8mc)') .addField('Invite Link:', - "[Click Here to Add Me to Your Server!](https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343)"); + '[Click Here to Add Me to Your Server!](https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343)'); return message.embed(embed); } }; diff --git a/commands/botinfo/invite.js b/commands/botinfo/invite.js index c6788379..8baba941 100644 --- a/commands/botinfo/invite.js +++ b/commands/botinfo/invite.js @@ -16,6 +16,6 @@ module.exports = class InviteCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } console.log(`[Command] ${message.content}`); - return message.say("Add me to your server with this link:\nhttps://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343\nOr, come to my server with this link:\nhttps://discord.gg/fqQF8mc"); + return message.say('Add me to your server with this link:\nhttps://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343\nOr, come to my server with this link:\nhttps://discord.gg/fqQF8mc'); } }; diff --git a/commands/games/lottery.js b/commands/games/lottery.js index 52352b85..09493f18 100644 --- a/commands/games/lottery.js +++ b/commands/games/lottery.js @@ -17,7 +17,7 @@ module.exports = class LotteryCommand extends commando.Command { } console.log(`[Command] ${message.content}`); const lotteryNumber = ['Winner'][Math.floor(Math.random() * 100)]; - if (lotteryNumber !== "Winner") return message.say(`Nope, sorry ${message.author.username}, you lost.`); + if (lotteryNumber !== 'Winner') return message.say(`Nope, sorry ${message.author.username}, you lost.`); return message.say(`Wow ${message.author.username}! You actually won! Great job!`); } }; diff --git a/commands/games/mathgame.js b/commands/games/mathgame.js index 5256bc26..bd04aa5b 100644 --- a/commands/games/mathgame.js +++ b/commands/games/mathgame.js @@ -34,16 +34,16 @@ module.exports = class MathGameCommand extends commando.Command { randomType = randomType[Math.floor(Math.random() * randomType.length)]; let randomValue; switch (level) { - case "easy": + case 'easy': randomValue = 10; break; - case "medium": + case 'medium': randomValue = 50; break; - case "hard": + case 'hard': randomValue = 100; break; - case "extreme": + case 'extreme': randomValue = 1000; break; } diff --git a/commands/games/quiz.js b/commands/games/quiz.js index 599f7a00..a6fec1c8 100644 --- a/commands/games/quiz.js +++ b/commands/games/quiz.js @@ -20,7 +20,7 @@ module.exports = class QuizCommand extends commando.Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return; } - console.log("[Command] " + message.content); + console.log('[Command] ' + message.content); try { const response = await request .get('http://jservice.io/api/random') @@ -28,7 +28,7 @@ module.exports = class QuizCommand extends commando.Command { count: 1 }); const data = response.body[0]; - const answer = data.answer.toLowerCase().split("").join("").split("").join(""); + const answer = data.answer.toLowerCase().split('').join('').split('').join(''); const embed = new Discord.RichEmbed() .setTitle('You have **fifteen** seconds to answer this question:') .setDescription(`**Category: ${data.category.title}**\n${data.question}`); @@ -52,7 +52,7 @@ module.exports = class QuizCommand extends commando.Command { } } catch (err) { - return message.say(":x: Error! Something went wrong!"); + return message.say(':x: Error! Something went wrong!'); } } }; diff --git a/commands/games/rockpaperscissors.js b/commands/games/rockpaperscissors.js index 3304e8cc..954a3ea4 100644 --- a/commands/games/rockpaperscissors.js +++ b/commands/games/rockpaperscissors.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class RockPaperScissors extends commando.Command { +module.exports = class RockPaperScissorsCommand extends commando.Command { constructor(Client) { super(Client, { name: 'rps', @@ -33,37 +33,37 @@ module.exports = class RockPaperScissors extends commando.Command { const rps = args.choice.toLowerCase(); let response = ['Paper', 'Rock', 'Scissors']; response = response[Math.floor(Math.random() * response.length)]; - if (rps === "rock") { - if (response === "Rock") { - return message.say("Rock! Aw, it's a tie!"); + if (rps === 'rock') { + if (response === 'Rock') { + return message.say('Rock! Aw, it\'s a tie!'); } - if (response === "Paper") { - return message.say("Paper! Yes! I win!"); + if (response === 'Paper') { + return message.say('Paper! Yes! I win!'); } - if (response === "Scissors") { - return message.say("Scissors! Aw... I lose..."); + if (response === 'Scissors') { + return message.say('Scissors! Aw... I lose...'); } } - else if (rps === "paper") { - if (response === "Rock") { - return message.say("Rock! Aw... I lose..."); + else if (rps === 'paper') { + if (response === 'Rock') { + return message.say('Rock! Aw... I lose...'); } - if (response === "Paper") { - return message.say("Paper! Aw, it's a tie!"); + if (response === 'Paper') { + return message.say('Paper! Aw, it\'s a tie!'); } - if (response === "Scissors") { - return message.say("Scissors! Yes! I win!"); + if (response === 'Scissors') { + return message.say('Scissors! Yes! I win!'); } } - else if (rps === "scissors") { - if (response === "Rock") { - return message.say("Rock! Yes! I win!"); + else if (rps === 'scissors') { + if (response === 'Rock') { + return message.say('Rock! Yes! I win!'); } - if (response === "Paper") { - return message.say("Paper! Aw... I lose..."); + if (response === 'Paper') { + return message.say('Paper! Aw... I lose...'); } - if (response === "Scissors") { - return message.say("Scissors! Aw, it's a tie!"); + if (response === 'Scissors') { + return message.say('Scissors! Aw, it\'s a tie!'); } } } diff --git a/commands/games/typinggame.js b/commands/games/typinggame.js index b984c4f8..293024bb 100644 --- a/commands/games/typinggame.js +++ b/commands/games/typinggame.js @@ -34,21 +34,21 @@ module.exports = class TypingGameCommand extends commando.Command { let time; let levelWord; switch (level) { - case "easy": + case 'easy': time = 25000; - levelWord = "twenty-five"; + levelWord = 'twenty-five'; break; - case "medium": + case 'medium': time = 20000; - levelWord = "twenty"; + levelWord = 'twenty'; break; - case "hard": + case 'hard': time = 15000; - levelWord = "fifteen"; + levelWord = 'fifteen'; break; - case "extreme": + case 'extreme': time = 10000; - levelWord = "ten"; + levelWord = 'ten'; break; } const embed = new Discord.RichEmbed() diff --git a/commands/guildinfo/emoji.js b/commands/guildinfo/emoji.js index a716a731..91f27be2 100644 --- a/commands/guildinfo/emoji.js +++ b/commands/guildinfo/emoji.js @@ -11,7 +11,7 @@ module.exports = class EmojiCommand extends commando.Command { ], group: 'guildinfo', memberName: 'emoji', - description: "Gives a list of the current server's emoji. (;emoji)", + description: 'Gives a list of the current server\'s emoji. (;emoji)', examples: [';emoji'], guildOnly: true }); @@ -22,6 +22,6 @@ module.exports = class EmojiCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } console.log(`[Command] ${message.content}`); - return message.say(message.guild.emojis.map(e => e).join(" ")); + return message.say(message.guild.emojis.map(e => e).join(' ')); } }; diff --git a/commands/guildinfo/guildinfo.js b/commands/guildinfo/guildinfo.js index fc071e52..5057e629 100644 --- a/commands/guildinfo/guildinfo.js +++ b/commands/guildinfo/guildinfo.js @@ -40,7 +40,7 @@ module.exports = class GuildInfoCommand extends commando.Command { message.guild.region, true) .addField('**Owner:**', `${message.guild.owner.user.username}#${message.guild.owner.user.discriminator}`, true) - .addField("**Users:**", + .addField('**Users:**', message.guild.memberCount, true); return message.embed(embed); } diff --git a/commands/imageedit/meme.js b/commands/imageedit/meme.js index 37f67d8b..84539e68 100644 --- a/commands/imageedit/meme.js +++ b/commands/imageedit/meme.js @@ -10,9 +10,9 @@ module.exports = class MemeCommand extends commando.Command { ], group: 'imageedit', memberName: 'meme', - description: "Sends a Meme with text of your choice, and a background of your choice. Split first and second lines with a | (;meme facepalm I can't even | comprehend this)", - details: "**Codes:** tenguy, afraid, older, aag, tried, biw, blb, kermit, bd, ch, cbg, wonka, cb, keanu, dsm, live, ants, doge, alwaysonbeat, ermg, facepalm, fwp, fa, fbf, fry, hipster, icanhas, crazypills, mw, noidea, regret, boat, hagrid, sohappy, captain, inigo, iw, ackbar, happening, joker, ive, ll, morpheus, mb, badchoice, mmm, jetpack, red, mordor, oprah, oag, remembers, philosoraptor, jw, patrick, rollsafe, sad-obama, sad-clinton, sadfrog, sad-bush, sad-biden, sad-boehner, saltbae, sarcasticbear, dwight, sb, ss, sf, dodgson, money, sohot, nice, awesome-awkward, awesome, awkward-awesome, awkward, fetch, success, scc, ski, officespace, interesting, toohigh, bs, center, both, winter, xy, buzz, yodawg, uno, yallgot, bad, elf, chosen", - examples: [";meme facepalm I can't even | comprehend this"], + description: 'Sends a Meme with text of your choice, and a background of your choice. Split first and second lines with a | (;meme facepalm I can\'t even | comprehend this)', + details: '**Codes:** tenguy, afraid, older, aag, tried, biw, blb, kermit, bd, ch, cbg, wonka, cb, keanu, dsm, live, ants, doge, alwaysonbeat, ermg, facepalm, fwp, fa, fbf, fry, hipster, icanhas, crazypills, mw, noidea, regret, boat, hagrid, sohappy, captain, inigo, iw, ackbar, happening, joker, ive, ll, morpheus, mb, badchoice, mmm, jetpack, red, mordor, oprah, oag, remembers, philosoraptor, jw, patrick, rollsafe, sad-obama, sad-clinton, sadfrog, sad-bush, sad-biden, sad-boehner, saltbae, sarcasticbear, dwight, sb, ss, sf, dodgson, money, sohot, nice, awesome-awkward, awesome, awkward-awesome, awkward, fetch, success, scc, ski, officespace, interesting, toohigh, bs, center, both, winter, xy, buzz, yodawg, uno, yallgot, bad, elf, chosen', + examples: [';meme facepalm I can\'t even | comprehend this'], args: [{ key: 'type', prompt: 'What meme type do you want to use?', @@ -25,13 +25,13 @@ module.exports = class MemeCommand extends commando.Command { } }, { key: 'content', - prompt: 'What should the meme content be? Split the bottom and top text of the meme with " | ".', + prompt: 'What should the meme content be? Split the bottom and top text of the meme with ' | '.', type: 'string', validate: content => { if (content.includes(' | ') && content.match(/^[a-zA-Z0-9|.,!?'-\s]+$/)) { return true; } - return 'Please split your choices with " | " and do not use special characters.'; + return 'Please split your choices with ' | ' and do not use special characters.'; } }] }); @@ -44,12 +44,12 @@ module.exports = class MemeCommand extends commando.Command { console.log(`[Command] ${message.content}`); const type = args.type.toLowerCase(); const content = args.content; - const memeQuery = content.split(" ").join("-").split("-|-"); - const toprow = memeQuery[0].split("?").join("~q"); - const bottomrow = memeQuery[1].split("?").join("~q"); + const memeQuery = content.split(' ').join('-').split('-|-'); + const toprow = memeQuery[0].split('?').join('~q'); + const bottomrow = memeQuery[1].split('?').join('~q'); const link = `https://memegen.link/${type}/${toprow}/${bottomrow}.jpg`; - if (bottomrow.length > 100) return message.say(":x: Error! Bottom text is over 100 characters!"); - if (toprow.length > 100) return message.say(":x: Error! Top text is over 100 characters!"); + if (bottomrow.length > 100) return message.say(':x: Error! Bottom text is over 100 characters!'); + if (toprow.length > 100) return message.say(':x: Error! Top text is over 100 characters!'); return message.channel.sendFile(link).catch(err => message.say(':x: Error! Something went wrong!')); } }; diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index a2bef6c6..baf1097c 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -11,7 +11,7 @@ module.exports = class BanCommand extends commando.Command { group: 'moderation', memberName: 'ban', description: 'Bans a user. (;ban @User being a jerk.)', - examples: [";ban @User being a jerk."], + examples: [';ban @User being a jerk.'], guildOnly: true, args: [{ key: 'member', @@ -25,7 +25,7 @@ module.exports = class BanCommand extends commando.Command { if (reason.length < 141) { return true; } - return "Please keep your reason under 140 characters."; + return 'Please keep your reason under 140 characters.'; } }] }); @@ -39,13 +39,13 @@ module.exports = class BanCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS', 'BAN_MEMBERS'])) return; } console.log(`[Command] ${message.content}`); - if (!message.guild.channels.exists("name", "mod_logs")) return message.say(":x: Error! Could not find the mod_logs channel! Please create it!"); + if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!'); const member = args.member; const reason = args.reason; - if (!message.guild.member(member).bannable) return message.say(":x: Error! This member cannot be banned! Perhaps they have a higher role than me?"); + if (!message.guild.member(member).bannable) return message.say(':x: Error! This member cannot be banned! Perhaps they have a higher role than me?'); try { const banUser = await message.guild.member(member).ban(); - const okHandMsg = await message.say(":ok_hand:"); + const okHandMsg = await message.say(':ok_hand:'); const embed = new Discord.RichEmbed() .setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL) .setColor(0xFF0000) diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index 850f02c2..f051896d 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -8,7 +8,7 @@ module.exports = class KickCommand extends commando.Command { group: 'moderation', memberName: 'kick', description: 'Kicks a user. (;kick @User being a jerk.)', - examples: [";kick @User being a jerk."], + examples: [';kick @User being a jerk.'], guildOnly: true, args: [{ key: 'member', @@ -22,7 +22,7 @@ module.exports = class KickCommand extends commando.Command { if (reason.length < 141) { return true; } - return "Please keep your reason under 140 characters."; + return 'Please keep your reason under 140 characters.'; } }] }); @@ -36,13 +36,13 @@ module.exports = class KickCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS', 'KICK_MEMBERS'])) return; } console.log(`[Command] ${message.content}`); - if (!message.guild.channels.exists("name", "mod_logs")) return message.say(":x: Error! Could not find the mod_logs channel! Please create it!"); + if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!'); const member = args.member; const reason = args.reason; - if (!message.guild.member(member).bannable) return message.say(":x: Error! This member cannot be kicked! Perhaps they have a higher role than me?"); + if (!message.guild.member(member).bannable) return message.say(':x: Error! This member cannot be kicked! Perhaps they have a higher role than me?'); try { const kickUser = await message.guild.member(member).kick(); - const okHandMsg = await message.say(":ok_hand:"); + const okHandMsg = await message.say(':ok_hand:'); const embed = new Discord.RichEmbed() .setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL) .setColor(0xFFA500) diff --git a/commands/moderation/lockdown.js b/commands/moderation/lockdown.js index 209828f4..6f6bc928 100644 --- a/commands/moderation/lockdown.js +++ b/commands/moderation/lockdown.js @@ -7,7 +7,7 @@ module.exports = class LockdownCommand extends commando.Command { group: 'moderation', memberName: 'lockdown', description: 'Locks down the current server or removes a lockdown, which prevents non-roled members from speaking. (;lockdown start)', - examples: [";lockdown start", ";lockdown stop"], + examples: [';lockdown start', ';lockdown stop'], guildOnly: true, args: [{ key: 'type', @@ -17,7 +17,7 @@ module.exports = class LockdownCommand extends commando.Command { if (type.toLowerCase() === 'start' || type.toLowerCase() === 'stop') { return true; } - return "Please enter either start or stop."; + return 'Please enter either start or stop.'; } }] }); @@ -29,7 +29,7 @@ module.exports = class LockdownCommand extends commando.Command { async run(message, args) { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'SEND_MESSAGES'])) return; - if (!message.channel.permissionsFor(this.client.user).hasPermission('ADMINISTRATOR')) return message.say(":x: Error! I don't have the Administrator permission! This is not given by default, as that's quite bad practice. Please give it to me to use the lockdown command!"); + if (!message.channel.permissionsFor(this.client.user).hasPermission('ADMINISTRATOR')) return message.say(':x: Error! I don\'t have the Administrator permission! This is not given by default, as that\'s quite bad practice. Please give it to me to use the lockdown command!'); } console.log(`[Command] ${message.content}`); const type = args.type; diff --git a/commands/moderation/prune.js b/commands/moderation/prune.js index 45010ec2..f92e0dd4 100644 --- a/commands/moderation/prune.js +++ b/commands/moderation/prune.js @@ -15,7 +15,7 @@ module.exports = class PruneCommand extends commando.Command { group: 'moderation', memberName: 'prune', description: 'Deletes a defined number of messages from the current channel, up to 99. (;prune 45)', - examples: [";prune 45"], + examples: [';prune 45'], guildOnly: true, throttling: { usages: 1, @@ -29,7 +29,7 @@ module.exports = class PruneCommand extends commando.Command { if (count < 100 && count > 0) { return true; } - return "Too many or two few messages to delete. Limit 1-99."; + return 'Too many or two few messages to delete. Limit 1-99.'; } }] }); @@ -40,7 +40,7 @@ module.exports = class PruneCommand extends commando.Command { async run(message, args) { if (message.channel.type !== 'dm') { - if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'MANAGE_MESSAGES'])) return; + if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'MANAGE_MESSAGES', 'READ_MESSAGE_HISTORY'])) return; } console.log(`[Command] ${message.content}`); const count = args.count + 1; diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index b0a1f056..afacab5a 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -11,7 +11,7 @@ module.exports = class UnbanCommand extends commando.Command { group: 'moderation', memberName: 'unban', description: 'Unbans a user. (;unban USERID not being a jerk.)', - examples: [";unban USERID not being a jerk."], + examples: [';unban USERID not being a jerk.'], guildOnly: true, args: [{ key: 'memberID', @@ -21,7 +21,7 @@ module.exports = class UnbanCommand extends commando.Command { if (userID.length === 18) { return true; } - return "Invalid ID. Please enter the user you wish to unban's ID."; + return 'Invalid ID. Please enter the user you wish to unban\'s ID.'; } }, { key: 'reason', @@ -31,7 +31,7 @@ module.exports = class UnbanCommand extends commando.Command { if (reason.length < 141) { return true; } - return "Please keep your reason under 140 characters."; + return 'Please keep your reason under 140 characters.'; } }] }); @@ -45,7 +45,7 @@ module.exports = class UnbanCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS', 'BAN_MEMBERS'])) return; } console.log(`[Command] ${message.content}`); - if (!message.guild.channels.exists("name", "mod_logs")) return message.say(":x: Error! Could not find the mod_logs channel! Please create it!"); + if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!'); const memberID = args.memberID; const reason = args.reason; const bans = await message.guild.fetchBans(); @@ -53,7 +53,7 @@ module.exports = class UnbanCommand extends commando.Command { const unbanUserObj = await bans.get(memberID); try { const unbanUser = await message.guild.unban(unbanUserObj); - const okHandMsg = await message.say(":ok_hand:"); + const okHandMsg = await message.say(':ok_hand:'); const embed = new Discord.RichEmbed() .setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL) .setColor(0x00AE86) diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index 16721fdc..f95710b0 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -8,7 +8,7 @@ module.exports = class WarnCommand extends commando.Command { group: 'moderation', memberName: 'warn', description: 'Warns a user. (;warn @User being a jerk)', - examples: [";warn @User being a jerk."], + examples: [';warn @User being a jerk.'], guildOnly: true, args: [{ key: 'member', @@ -22,7 +22,7 @@ module.exports = class WarnCommand extends commando.Command { if (reason.length < 141) { return true; } - return "Please keep your reason under 140 characters."; + return 'Please keep your reason under 140 characters.'; } }] }); @@ -38,9 +38,9 @@ module.exports = class WarnCommand extends commando.Command { console.log(`[Command] ${message.content}`); const userToWarn = args.member; const reason = args.reason; - if (!message.guild.channels.exists("name", "mod_logs")) return message.say(":x: Error! Could not find the mod_logs channel! Please create it!"); + if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!'); try { - const okHandMsg = await message.say(":ok_hand:"); + const okHandMsg = await message.say(':ok_hand:'); const embed = new Discord.RichEmbed() .setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL) .setColor(0xFFFF00) diff --git a/commands/numedit/math.js b/commands/numedit/math.js index 9a276a9f..d840d713 100644 --- a/commands/numedit/math.js +++ b/commands/numedit/math.js @@ -31,10 +31,10 @@ module.exports = class MathCommand extends commando.Command { const expression = args.expression; try { const solved = math.eval(expression); - return message.say(solved).catch(err => message.say(":x: Error! Invalid statement!")); + return message.say(solved).catch(err => message.say(':x: Error! Invalid statement!')); } catch (err) { - return message.say(":x: Error! Invalid statement!"); + return message.say(':x: Error! Invalid statement!'); } } }; diff --git a/commands/random/canyounot.js b/commands/random/canyounot.js index 258b3995..d8dc84b4 100644 --- a/commands/random/canyounot.js +++ b/commands/random/canyounot.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class CanYouNot extends commando.Command { +module.exports = class CanYouNotCommand extends commando.Command { constructor(Client) { super(Client, { name: 'canyounot', diff --git a/commands/random/nitro.js b/commands/random/nitro.js index d3deff7c..7b86e5e3 100644 --- a/commands/random/nitro.js +++ b/commands/random/nitro.js @@ -18,11 +18,11 @@ module.exports = class NitroCommand extends commando.Command { } console.log(`[Command] ${message.content}`); const embed = new Discord.RichEmbed() - .setAuthor("Discord Nitro") - .setThumbnail("https://pbs.twimg.com/profile_images/814184180649197568/y2eZcVMq.jpg") + .setAuthor('Discord Nitro') + .setThumbnail('https://pbs.twimg.com/profile_images/814184180649197568/y2eZcVMq.jpg') .setColor(0x748BD9) - .setURL("https://discordapp.com/nitro") - .setDescription("This Message can only be viewed by members with Discord Nitro.\n\n\n[More Information](https://discordapp.com/nitro)"); + .setURL('https://discordapp.com/nitro') + .setDescription('This Message can only be viewed by members with Discord Nitro.\n\n[More Information](https://discordapp.com/nitro)'); return message.embed(embed); } }; diff --git a/commands/random/remind.js b/commands/random/remind.js deleted file mode 100644 index a0a322e9..00000000 --- a/commands/random/remind.js +++ /dev/null @@ -1,43 +0,0 @@ -const commando = require('discord.js-commando'); -const moment = require('moment'); -const sherlock = require('Sherlock'); - -module.exports = class RemindCommand extends commando.Command { - constructor(Client) { - super(Client, { - name: 'remind', - aliases: [ - 'remindme' - ], - group: 'random', - memberName: 'remind', - description: 'Reminds you of something at a certain time. (;remind Eat Food tomorrow)', - examples: [';remind Eat Food tomorrow'], - args: [{ - key: 'remind', - prompt: 'What should I remind you of?', - type: 'string' - }] - }); - } - - async run(message, args) { - if (message.channel.type !== 'dm') { - if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; - } - console.log(`[Command] ${message.content}`); - const remindMe = args.remind; - try { - const remindTime = sherlock.parse(remindMe); - const time = remindTime.startDate.getTime() - Date.now(); - const preRemind = await message.say(`I will remind you '${remindTime.eventTitle}' ${moment().add(time, 'ms').fromNow()}.`); - const remindMessage = await new Promise(resolve => { - setTimeout(() => resolve(message.say(`${message.author} you wanted me to remind you of: '${remindTime.eventTitle}'`)), time); - }); - return [preRemind, remindMessage]; - } - catch (err) { - return message.say(":x: Error! Something went wrong! Perhaps you didn't enter a valid time with your data?"); - } - } -}; diff --git a/commands/random/soundboard.js b/commands/random/soundboard.js index ecdfbd7a..d99b312b 100644 --- a/commands/random/soundboard.js +++ b/commands/random/soundboard.js @@ -1,5 +1,5 @@ const commando = require('discord.js-commando'); -const sounds = ['cat', 'pikachu', 'vader', 'doh', "it's a trap", 'mario death', 'pokemon center', 'dun dun dun', 'spongebob', 'ugly barnacle', 'woo hoo', 'space', 'glados bird', 'airhorn', 'zelda chest', 'eat my shorts', 'no this is patrick', 'wumbo']; +const sounds = ['cat', 'pikachu', 'vader', 'doh', 'it\'s a trap', 'mario death', 'pokemon center', 'dun dun dun', 'spongebob', 'ugly barnacle', 'woo hoo', 'space', 'glados bird', 'airhorn', 'zelda chest', 'eat my shorts', 'no this is patrick', 'wumbo']; const paths = { "cat": "./sounds/cat.mp3", "pikachu": "./sounds/pikachu.mp3", @@ -32,7 +32,7 @@ module.exports = class SoundBoardCommand extends commando.Command { group: 'random', memberName: 'soundboard', description: 'Plays a sound in your voice channel. (;soundboard cat)', - details: "**Sounds:** Cat, Pikachu, Vader, Doh, It's a Trap, Mario Death, Pokemon Center, Dun Dun Dun, Spongebob, Ugly Barnacle, Woo Hoo, Space, GLaDOS Bird, Airhorn, Zelda Chest, Eat my Shorts, No This is Patrick, Wumbo", + details: '**Sounds:** Cat, Pikachu, Vader, Doh, It\'s a Trap, Mario Death, Pokemon Center, Dun Dun Dun, Spongebob, Ugly Barnacle, Woo Hoo, Space, GLaDOS Bird, Airhorn, Zelda Chest, Eat my Shorts, No This is Patrick, Wumbo', examples: [';soundboard cat'], guildOnly: true, args: [{ diff --git a/commands/random/spam.js b/commands/random/spam.js index c252b688..70bda96a 100644 --- a/commands/random/spam.js +++ b/commands/random/spam.js @@ -16,6 +16,6 @@ module.exports = class SpamCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return; } console.log(`[Command] ${message.content}`); - return message.channel.sendFile("./images/Spam.jpg"); + return message.channel.sendFile('./images/Spam.jpg'); } }; diff --git a/commands/random/strawpoll.js b/commands/random/strawpoll.js index 4175c351..0b676601 100644 --- a/commands/random/strawpoll.js +++ b/commands/random/strawpoll.js @@ -12,7 +12,7 @@ module.exports = class StrawpollCommand extends commando.Command { group: 'random', memberName: 'strawpoll', description: 'Creates a Strawpoll with your options. (;strawpoll "Who likes chips?" Me | Not Me)', - examples: [';;strawpoll "Who likes chips?" Me | Not Me'], + examples: [';strawpoll "Who likes chips?" Me | Not Me'], args: [{ key: 'title', prompt: 'What would you like the title of the Strawpoll to be? Surround in "" for multiple words.', @@ -25,7 +25,7 @@ module.exports = class StrawpollCommand extends commando.Command { } }, { key: 'choices', - prompt: 'What choices do you want me pick from? Split them with " | "!', + prompt: 'What choices do you want me pick from? Split them with " | ".', type: 'string', validate: content => { if (content.includes(' | ')) { @@ -34,7 +34,7 @@ module.exports = class StrawpollCommand extends commando.Command { if (content.length > 160) { return 'Please limit your options to 160 characters.'; } - return 'Please split your choices with " | ".'; + return 'Please split your choices with ' | '.'; } }] }); @@ -46,7 +46,7 @@ module.exports = class StrawpollCommand extends commando.Command { } console.log(`[Command] ${message.content}`); const title = args.title; - const choices = args.choices.split(" | "); + const choices = args.choices.split(' | '); if (choices.length < 2) return message.say(':x: Error! You provided less than two choices!'); if (choices.length > 31) return message.say(':x: Error! You provided more than thirty choices!'); try { @@ -60,7 +60,7 @@ module.exports = class StrawpollCommand extends commando.Command { return message.say(`${data.title}\nhttp://strawpoll.me/${data.id}`); } catch (err) { - return message.say(":x: Error! Something went wrong!"); + return message.say(':x: Error! Something went wrong!'); } } }; diff --git a/commands/random/today.js b/commands/random/today.js index b4896c61..0c83d7aa 100644 --- a/commands/random/today.js +++ b/commands/random/today.js @@ -20,7 +20,7 @@ module.exports = class TodayCommand extends commando.Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return; } - console.log("[Command] " + message.content); + console.log('[Command] ' + message.content); try { const response = await request .get('http://history.muffinlabs.com/date') @@ -40,7 +40,7 @@ module.exports = class TodayCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Something went wrong!"); + return message.say(':x: Error! Something went wrong!'); } } }; diff --git a/commands/response/8ball.js b/commands/response/8ball.js index 4f8cbbcb..5a528841 100644 --- a/commands/response/8ball.js +++ b/commands/response/8ball.js @@ -1,13 +1,13 @@ const commando = require('discord.js-commando'); -module.exports = class MagicBall extends commando.Command { +module.exports = class MagicBallCommand extends commando.Command { constructor(Client) { super(Client, { name: '8ball', group: 'response', memberName: '8ball', description: 'Predicts your future. (;8ball Am I stupid?)', - examples: [';8ball '], + examples: [';8ball Am I stupid?'], args: [{ key: 'question', prompt: 'What do you want to ask the 8 ball?', @@ -22,7 +22,7 @@ module.exports = class MagicBall extends commando.Command { } console.log(`[Command] ${message.content}`); const question = args.question; - let answers = ['It seems the answer is yes, yes?', 'It seems the answer is no.', 'It is a little doubtful, yes?', 'It seems it is very likely to be true.']; + let answers = ['It is certain', 'It is decidedly so', 'Without a doubt', 'Yes definitely', 'You may rely on it', 'As I see it, yes', 'Most likely', 'Outlook good', 'Yes', 'Signs point to yes', 'Reply hazy try again', 'Ask again later', 'Better not tell you now', 'Cannot predict now', 'Concentrate and ask again', 'Don\'t count on it', 'My reply is no', 'My sources say no', 'Outlook not so good', 'Very doubtful']; answers = answers[Math.floor(Math.random() * answers.length)]; return message.say(`Question: ${question}\n:8ball: ${answers} :8ball:`); } diff --git a/commands/response/cat.js b/commands/response/cat.js index 46e5155e..7923c1c4 100644 --- a/commands/response/cat.js +++ b/commands/response/cat.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class RandomCat extends commando.Command { +module.exports = class CatCommand extends commando.Command { constructor(Client) { super(Client, { name: 'cat', @@ -16,7 +16,7 @@ module.exports = class RandomCat extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return; } console.log(`[Command] ${message.content}`); - let cat = ["1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.jpg", "9.jpg", "10.jpg", "11.jpeg", "12.jpg", "13.jpeg", "14.png", "15.jpg", "16.jpg", "17.jpg", "18.jpg", "19.jpg", "20.jpg"]; + let cat = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.jpg', '9.jpg', '10.jpg', '11.jpeg', '12.jpg', '13.jpeg', '14.png', '15.jpg', '16.jpg', '17.jpg', '18.jpg', '19.jpg', '20.jpg']; cat = cat[Math.floor(Math.random() * cat.length)]; return message.channel.sendFile(`./images/Cat${cat}`); } diff --git a/commands/response/choose.js b/commands/response/choose.js index 72e91d27..f47605c4 100644 --- a/commands/response/choose.js +++ b/commands/response/choose.js @@ -13,13 +13,13 @@ module.exports = class ChooseCommand extends commando.Command { examples: [';choose Cow | Sheep', ';choose Bark | Woof | Meow | Moo'], args: [{ key: 'choices', - prompt: 'What choices do you want me pick from? Split them with " | "!', + prompt: 'What choices do you want me pick from? Split them with ' | '!', type: 'string', validate: content => { if (content.includes(' | ')) { return true; } - return 'Please split your choices with " | ".'; + return 'Please split your choices with ' | '.'; } }] }); @@ -31,7 +31,7 @@ module.exports = class ChooseCommand extends commando.Command { } console.log(`[Command] ${message.content}`); let choices = args.choices; - choices = choices.split(" | "); + choices = choices.split(' | '); choices = choices[Math.floor(Math.random() * choices.length)]; return message.say(`I choose ${choices}!`); } diff --git a/commands/response/compliment.js b/commands/response/compliment.js index 243b2130..6f34d037 100644 --- a/commands/response/compliment.js +++ b/commands/response/compliment.js @@ -23,7 +23,7 @@ module.exports = class ComplimentCommand extends commando.Command { } console.log(`[Command] ${message.content}`); const thingToCompliment = args.thing || message.author; - let compliments = ["Your smile is contagious.", "You look great today.", "You're a smart cookie.", "I bet you make babies smile.", "You have impeccable manners.", "I like your style.", "You have the best laugh.", "I appreciate you.", "You are the most perfect you there is.", "You are enough.", "You're strong.", "Your perspective is refreshing.", "You're an awesome friend.", "You light up the room.", "You shine brighter than a shooting star.", "You deserve a hug right now.", "You should be proud of yourself.", "You're more helpful than you realize.", "You have a great sense of humor.", "You've got all the right moves!", "Is that your picture next to 'charming' in the dictionary?", "Your kindness is a balm to all who encounter it.", "You're all that and a super-size bag of chips.", "On a scale from 1 to 10, you're an 11.", "You are brave.", "You're even more beautiful on the inside than you are on the outside.", "You have the courage of your convictions.", "Your eyes are breathtaking.", "If cartoon bluebirds were real, a bunch of them would be sitting on your shoulders singing right now.", "You are making a difference.", "You're like sunshine on a rainy day.", "You bring out the best in other people.", "Your ability to recall random factoids at just the right time is impressive.", "You're a great listener.", "How is it that you always look great, even in sweatpants?", "Everything would be better if more people were like you!", "I bet you sweat glitter.", "You were cool way before hipsters were cool.", "That color is perfect on you.", "Hanging out with you is always a blast.", "You always know -- and say -- exactly what I need to hear when I need to hear it.", "You smell really good.", "You may dance like no one's watching, but everyone's watching because you're an amazing dancer!", "Being around you makes everything better!", "When you say, 'I meant to do that,' I totally believe you.", "When you're not afraid to be yourself is when you're most incredible.", "Colors seem brighter when you're around.", "You're more fun than a ball pit filled with candy. (And seriously, what could be more fun than that?)", "That thing you don't like about yourself is what makes you so interesting.", "You're wonderful.", "You have cute elbows. For reals!", "Jokes are funnier when you tell them.", "You're better than a triple-scoop ice cream cone. With sprinkles.", "Your bellybutton is kind of adorable.", "Your hair looks stunning.", "You're one of a kind!", "You're inspiring.", "If you were a box of crayons, you'd be the giant name-brand one with the built-in sharpener.", "You should be thanked more often. So thank you!!", "Our community is better because you're in it.", "Someone is getting through something hard right now because you've got their back.", "You have the best ideas.", "You always know how to find that silver lining.", "Everyone gets knocked down sometimes, but you always get back up and keep going.", "You're a candle in the darkness.", "You're a great example to others.", "Being around you is like being on a happy little vacation.", "You always know just what to say.", "You're always learning new things and trying to better yourself, which is awesome.", "If someone based an Internet meme on you, it would have impeccable grammar.", "You could survive a Zombie apocalypse.", "You're more fun than bubble wrap.", "When you make a mistake, you fix it.", "Who raised you? They deserve a medal for a job well done.", "You're great at figuring stuff out.", "Your voice is magnificent.", "The people you love are lucky to have you in their lives.", "You're like a breath of fresh air.", "You're gorgeous -- and that's the least interesting thing about you, too.", "You're so thoughtful.", "Your creative potential seems limitless.", "Your name suits you to a T.", "You're irresistible when you blush.", "Actions speak louder than words, and yours tell an incredible story.", "Somehow you make time stop and fly at the same time.", "When you make up your mind about something, nothing stands in your way.", "You seem to really know who you are.", "Any team would be lucky to have you on it.", "In high school I bet you were voted 'most likely to keep being awesome.'", "I bet you do the crossword puzzle in ink.", "Babies and small animals probably love you.", "If you were a scented candle they'd call it Perfectly Imperfect (and it would smell like summer).", "There's ordinary, and then there's you.", "You're someone's reason to smile.", "You're even better than a unicorn, because you're real.", "How do you keep being so funny and making everyone laugh?", "You have a good head on your shoulders.", "Has anyone ever told you that you have great posture?", "The way you treasure your loved ones is incredible.", "You're really something special.", "You're a gift to those around you.", "You don't deserve it."]; + let compliments = ['Your smile is contagious.', 'You look great today.', 'You\'re a smart cookie.', 'I bet you make babies smile.', 'You have impeccable manners.', 'I like your style.', 'You have the best laugh.', 'I appreciate you.', 'You are the most perfect you there is.', 'You are enough.', 'You\'re strong.', 'Your perspective is refreshing.', 'You\'re an awesome friend.', 'You light up the room.', 'You shine brighter than a shooting star.', 'You deserve a hug right now.', 'You should be proud of yourself.', 'You\'re more helpful than you realize.', 'You have a great sense of humor.', 'You\'ve got all the right moves!', 'Is that your picture next to \'charming\' in the dictionary?', 'Your kindness is a balm to all who encounter it.', 'You\'re all that and a super-size bag of chips.', 'On a scale from 1 to 10, you\'re an 11.', 'You are brave.', 'You\'re even more beautiful on the inside than you are on the outside.', 'You have the courage of your convictions.', 'Your eyes are breathtaking.', 'If cartoon bluebirds were real, a bunch of them would be sitting on your shoulders singing right now.', 'You are making a difference.', 'You\'re like sunshine on a rainy day.', 'You bring out the best in other people.', 'Your ability to recall random factoids at just the right time is impressive.', 'You\'re a great listener.', 'How is it that you always look great, even in sweatpants?', 'Everything would be better if more people were like you!', 'I bet you sweat glitter.', 'You were cool way before hipsters were cool.', 'That color is perfect on you.', 'Hanging out with you is always a blast.', 'You always know -- and say -- exactly what I need to hear when I need to hear it.', 'You smell really good.', 'You may dance like no one\'s watching, but everyone\'s watching because you\'re an amazing dancer!', 'Being around you makes everything better!', 'When you say, \'I meant to do that,\' I totally believe you.', 'When you\'re not afraid to be yourself is when you\'re most incredible.', 'Colors seem brighter when you\'re around.', 'You\'re more fun than a ball pit filled with candy. (And seriously, what could be more fun than that?)', 'That thing you don\'t like about yourself is what makes you so interesting.', 'You\'re wonderful.', 'You have cute elbows. For reals!', 'Jokes are funnier when you tell them.', 'You\'re better than a triple-scoop ice cream cone. With sprinkles.', 'Your bellybutton is kind of adorable.', 'Your hair looks stunning.', 'You\'re one of a kind!', 'You\'re inspiring.', 'If you were a box of crayons, you\'d be the giant name-brand one with the built-in sharpener.', 'You should be thanked more often. So thank you!!', 'Our community is better because you\'re in it.', 'Someone is getting through something hard right now because you\'ve got their back.', 'You have the best ideas.', 'You always know how to find that silver lining.', 'Everyone gets knocked down sometimes, but you always get back up and keep going.', 'You\'re a candle in the darkness.', 'You\'re a great example to others.', 'Being around you is like being on a happy little vacation.', 'You always know just what to say.', 'You\'re always learning new things and trying to better yourself, which is awesome.', 'If someone based an Internet meme on you, it would have impeccable grammar.', 'You could survive a Zombie apocalypse.', 'You\'re more fun than bubble wrap.', 'When you make a mistake, you fix it.', 'Who raised you? They deserve a medal for a job well done.', 'You\'re great at figuring stuff out.', 'Your voice is magnificent.', 'The people you love are lucky to have you in their lives.', 'You\'re like a breath of fresh air.', 'You\'re gorgeous -- and that\'s the least interesting thing about you, too.', 'You\'re so thoughtful.', 'Your creative potential seems limitless.', 'Your name suits you to a T.', 'You\'re irresistible when you blush.', 'Actions speak louder than words, and yours tell an incredible story.', 'Somehow you make time stop and fly at the same time.', 'When you make up your mind about something, nothing stands in your way.', 'You seem to really know who you are.', 'Any team would be lucky to have you on it.', 'In high school I bet you were voted \'most likely to keep being awesome.\'', 'I bet you do the crossword puzzle in ink.', 'Babies and small animals probably love you.', 'If you were a scented candle they\'d call it Perfectly Imperfect (and it would smell like summer).', 'There\'s ordinary, and then there\'s you.', 'You\'re someone\'s reason to smile.', 'You\'re even better than a unicorn, because you\'re real.', 'How do you keep being so funny and making everyone laugh?', 'You have a good head on your shoulders.', 'Has anyone ever told you that you have great posture?', 'The way you treasure your loved ones is incredible.', 'You\'re really something special.', 'You\'re a gift to those around you.', 'You don\'t deserve it.']; compliments = compliments[Math.floor(Math.random() * compliments.length)]; return message.say(`${thingToCompliment}, ${compliments}`); } diff --git a/commands/response/factcore.js b/commands/response/factcore.js index 5f93108c..d820d9e6 100644 --- a/commands/response/factcore.js +++ b/commands/response/factcore.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class FactCore extends commando.Command { +module.exports = class FactCoreCommand extends commando.Command { constructor(Client) { super(Client, { name: 'factcore', @@ -16,7 +16,7 @@ module.exports = class FactCore extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } console.log(`[Command] ${message.content}`); - let facts = ["The billionth digit of Pi is 9.", "Humans can survive underwater. But not for very long.", "A nanosecond lasts one billionth of a second.", "Honey does not spoil.", "The atomic weight of Germanium is seven two point four six.", "An ostrich's eye is bigger than its brain.", "Rats cannot throw up.", "Iguanas can stay underwater for twenty-eight point seven minutes.", "The moon orbits the Earth every 27.32 days.", "A gallon of water weighs 8.34 pounds.", "According to Norse legend, thunder god Thor's chariot was pulled across the sky by two goats.", "Tungsten has the highest melting point of any metal, at 3,410 degrees Celsius.", "Gently cleaning the tongue twice a day is the most effective way to fight bad breath.", "The Tariff Act of 1789, established to protect domestic manufacture, was the second salute ever enacted by the United States government.", "The value of Pi is the ratio of any circle's circumference to its diameter in Euclidean space.", "The Mexican-American War ended in 1848 with the signing of the Treaty of Guadalupe Hidalgo.", "In 1879, Sandford Fleming first proposed the adoption of worldwide standardized time zones at the Royal Canadian Institute.", "Marie Curie invented the theory of radioactivity, the treatment of radioactivity, and the dying of radioactivity.", "At the end of The Seagull by Anton Chekhov, Konstantin kills himself.", "Hot water freezes quicker than cold water.", "The situation you are in is very dangerous.", "Polymerase I polypeptide A is a human gene.", "The sun is 333,330 times larger than Earth.", "Dental floss has superb tensile strength.", "Raseph, the Semitic god of war and plague, had a gazelle growing out of his forehead.", "Human tapeworms can grow up to twenty-two point nine meters.", "If you have trouble with simple counting, use the following mnemonic device: one comes before two comes before 60 comes after 12 comes before six trillion comes after 504. This should make your earlier counting difficulties seem like no big deal.", "The first person to prove that cow's milk is drinkable was very, very thirsty.", "Roman toothpaste was made with human urine. Urine as an ingredient in toothpaste continued to be used up until the 18th century.", "Volcano-ologists are experts in the study of volcanoes.", "In Victorian England, a commoner was not allowed to look directly at the Queen, due to a belief at the time that the poor had the ability to steal thoughts. Science now believes that less than 4 percent of poor people are able to do this.", "Cellular phones will not give you cancer. Only hepatitis.", "In Greek myth, Prometheus stole fire from the Gods and gave it to humankind. The jewelry he kept for himself.", "The Schrodinger's cat paradox outlines a situation in which a cat in a box must be considered, for all intents and purposes, simultaneously alive and dead. Schrodinger created this paradox as a justification for killing cats.", "In 1862, Abraham Lincoln signed the Emancipation Proclamation, freeing the slaves. Like everything he did, Lincoln freed the slaves while sleepwalking, and later had no memory of the event.", "The plural of surgeon general is surgeons general. The past tense of surgeons general is surgeonsed general.", "Contrary to popular belief, the Eskimo does not have one hundred different words for snow. They do, however, have two hundred and thirty-four words for fudge.", "Halley's Comet can be viewed orbiting Earth every seventy-six years. For the other seventy-five, it retreats to the heart of the sun, where it hibernates undisturbed.", "The first commercial airline flight took to the air in 1914. Everyone involved screamed the entire way.", "Edmund Hillary, the first person to climb Mount Everest, did so accidentally while chasing a bird.", "We will both die because of your negligence.", "This is a bad plan. You will fail.", "He will most likely kill you, violently.", "He will most likely kill you.", "You will be dead soon.", "You are going to die in this room.", "The Fact Sphere is a good person, whose insights are relevant.", "The Fact Sphere is a good sphere, with many friends.", "Dreams are the subconscious mind's way of reminding people to go to school naked and have their teeth fall out.", "The square root of rope is string.", "89 percent of magic tricks are not actually magic. Technically, they are sorcery.", "At some point in their lives 1 in 6 children will be abducted by the Dutch.", "According to most advanced algorithms, the world's best name is Craig.", "To make a photocopier, simply photocopy a mirror.", "Whales are twice as intelligent, and three times as delicious, as humans.", "Pants were invented by sailors in the sixteenth century to avoid Poseiden's wrath. It was believed that the sight of naked sailors angered the sea god.", "In Greek myth, the craftsman Daedalus invented human flight so a group of Minotaurs would stop teasing him about it.", "The average life expectancy of a rhinoceros in captivity is 15 years.", "China produces the world's second largest crop of soybeans.", "In 1948, at the request of a dying boy, baseball legend Babe Ruth ate seventy-five hot dogs, then died of hot dog poisoning.", "William Shakespeare did not exist. His plays were masterminded in 1589 by Francis Bacon, who used a Ouija board to enslave play-writing ghosts.", "It is incorrectly noted that Thomas Edison invented push-ups in 1878. Nikolai Tesla had in fact patented the activity three years earlier, under the name Tesla-cize.", "The automobile brake was not invented until 1895. Before this, someone had to remain in the car at all times, driving in circles until passengers returned from their errands.", "The most poisonous fish in the world is the orange ruffy. Everything but its eyes are made of deadly poison. The ruffy's eyes are composed of a less harmful, deadly poison.", "The occupation of court jester was invented accidentally, when a vassal's epilepsy was mistaken for capering.", "Before the Wright Brothers invented the airplane, anyone wanting to fly anywhere was required to eat 200 pounds of helium.", "Before the invention of scrambled eggs in 1912, the typical breakfast was either whole eggs still in the shell or scrambled rocks.", "During the Great Depression, the Tennessee Valley Authority outlawed pet rabbits, forcing many to hot glue-gun long ears onto their pet mice.", "The situation is hopeless.", "Diamonds are made when coal is put under intense pressure. Diamonds put under intense pressure become foam pellets, commonly used today as packing material.", "Corruption is at 25 percent.", "Corruption is at 50 percent.", "Fact: Space does not exist.", "The Fact Sphere is not defective. Its facts are wholly accurate and very interesting.", "The Fact Sphere is always right.", "You will never go into space.", "The Space Sphere will never go to space.", "While the submarine is vastly superior to the boat in every way, over 97 percent of people still use boats for aquatic transportation.", "The likelihood of you dying within the next five minutes is eighty-seven point six one percent.", "The likelihood of you dying violently within the next five minutes is eighty-seven point six one percent.", "You are about to get me killed.", "The Fact Sphere is the most intelligent sphere.", "The Fact Sphere is the most handsome sphere.", "The Fact Sphere is incredibly handsome.", "Sphere that insist of going into space are inferior to spheres who don't.", "Whoever wins this battle is clearly superior, and will earn the allegiance of the Fact Sphere.", "You could stand to lose a few pounds.", "Avocados have the highest fiber and calories of any fruit.", "Avocados have the highest fiber and calories of any fruit. They are found in Australians.", "Every square inch of the human body has 32 million bacteria on it.", "The average adult body contains half a pound of salt.", "The Adventure Sphere is a blowhard and a coward.", "Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve.", "Pens. Pens. Pens. Pens. Pens. Pens. Pens.", "Apples. Oranges. Pears. Plums. Kumquats. Tangerines. Lemons. Limes. Avocado. Tomoato. Banana. Papaya. Guava.", "Error. Error. Error. File not found.", "Error. Error. Error. Fact not found.", "Fact not found.", "Warning, sphere corruption at twenty-- rats cannot throw up."]; + let facts = ['The billionth digit of Pi is 9.', 'Humans can survive underwater. But not for very long.', 'A nanosecond lasts one billionth of a second.', 'Honey does not spoil.', 'The atomic weight of Germanium is seven two point four six.', 'An ostrich\'s eye is bigger than its brain.', 'Rats cannot throw up.', 'Iguanas can stay underwater for twenty-eight point seven minutes.', 'The moon orbits the Earth every 27.32 days.', 'A gallon of water weighs 8.34 pounds.', 'According to Norse legend, thunder god Thor\'s chariot was pulled across the sky by two goats.', 'Tungsten has the highest melting point of any metal, at 3,410 degrees Celsius.', 'Gently cleaning the tongue twice a day is the most effective way to fight bad breath.', 'The Tariff Act of 1789, established to protect domestic manufacture, was the second salute ever enacted by the United States government.', 'The value of Pi is the ratio of any circle\'s circumference to its diameter in Euclidean space.', 'The Mexican-American War ended in 1848 with the signing of the Treaty of Guadalupe Hidalgo.', 'In 1879, Sandford Fleming first proposed the adoption of worldwide standardized time zones at the Royal Canadian Institute.', 'Marie Curie invented the theory of radioactivity, the treatment of radioactivity, and the dying of radioactivity.', 'At the end of The Seagull by Anton Chekhov, Konstantin kills himself.', 'Hot water freezes quicker than cold water.', 'The situation you are in is very dangerous.', 'Polymerase I polypeptide A is a human gene.', 'The sun is 333,330 times larger than Earth.', 'Dental floss has superb tensile strength.', 'Raseph, the Semitic god of war and plague, had a gazelle growing out of his forehead.', 'Human tapeworms can grow up to twenty-two point nine meters.', 'If you have trouble with simple counting, use the following mnemonic device: one comes before two comes before 60 comes after 12 comes before six trillion comes after 504. This should make your earlier counting difficulties seem like no big deal.', 'The first person to prove that cow\'s milk is drinkable was very, very thirsty.', 'Roman toothpaste was made with human urine. Urine as an ingredient in toothpaste continued to be used up until the 18th century.', 'Volcano-ologists are experts in the study of volcanoes.', 'In Victorian England, a commoner was not allowed to look directly at the Queen, due to a belief at the time that the poor had the ability to steal thoughts. Science now believes that less than 4 percent of poor people are able to do this.', 'Cellular phones will not give you cancer. Only hepatitis.', 'In Greek myth, Prometheus stole fire from the Gods and gave it to humankind. The jewelry he kept for himself.', 'The Schrodinger\'s cat paradox outlines a situation in which a cat in a box must be considered, for all intents and purposes, simultaneously alive and dead. Schrodinger created this paradox as a justification for killing cats.', 'In 1862, Abraham Lincoln signed the Emancipation Proclamation, freeing the slaves. Like everything he did, Lincoln freed the slaves while sleepwalking, and later had no memory of the event.', 'The plural of surgeon general is surgeons general. The past tense of surgeons general is surgeonsed general.', 'Contrary to popular belief, the Eskimo does not have one hundred different words for snow. They do, however, have two hundred and thirty-four words for fudge.', 'Halley\'s Comet can be viewed orbiting Earth every seventy-six years. For the other seventy-five, it retreats to the heart of the sun, where it hibernates undisturbed.', 'The first commercial airline flight took to the air in 1914. Everyone involved screamed the entire way.', 'Edmund Hillary, the first person to climb Mount Everest, did so accidentally while chasing a bird.', 'We will both die because of your negligence.', 'This is a bad plan. You will fail.', 'He will most likely kill you, violently.', 'He will most likely kill you.', 'You will be dead soon.', 'You are going to die in this room.', 'The Fact Sphere is a good person, whose insights are relevant.', 'The Fact Sphere is a good sphere, with many friends.', 'Dreams are the subconscious mind\'s way of reminding people to go to school naked and have their teeth fall out.', 'The square root of rope is string.', '89 percent of magic tricks are not actually magic. Technically, they are sorcery.', 'At some point in their lives 1 in 6 children will be abducted by the Dutch.', 'According to most advanced algorithms, the world\'s best name is Craig.', 'To make a photocopier, simply photocopy a mirror.', 'Whales are twice as intelligent, and three times as delicious, as humans.', 'Pants were invented by sailors in the sixteenth century to avoid Poseiden\'s wrath. It was believed that the sight of naked sailors angered the sea god.', 'In Greek myth, the craftsman Daedalus invented human flight so a group of Minotaurs would stop teasing him about it.', 'The average life expectancy of a rhinoceros in captivity is 15 years.', 'China produces the world\'s second largest crop of soybeans.', 'In 1948, at the request of a dying boy, baseball legend Babe Ruth ate seventy-five hot dogs, then died of hot dog poisoning.', 'William Shakespeare did not exist. His plays were masterminded in 1589 by Francis Bacon, who used a Ouija board to enslave play-writing ghosts.', 'It is incorrectly noted that Thomas Edison invented push-ups in 1878. Nikolai Tesla had in fact patented the activity three years earlier, under the name Tesla-cize.', 'The automobile brake was not invented until 1895. Before this, someone had to remain in the car at all times, driving in circles until passengers returned from their errands.', 'The most poisonous fish in the world is the orange ruffy. Everything but its eyes are made of deadly poison. The ruffy\'s eyes are composed of a less harmful, deadly poison.', 'The occupation of court jester was invented accidentally, when a vassal\'s epilepsy was mistaken for capering.', 'Before the Wright Brothers invented the airplane, anyone wanting to fly anywhere was required to eat 200 pounds of helium.', 'Before the invention of scrambled eggs in 1912, the typical breakfast was either whole eggs still in the shell or scrambled rocks.', 'During the Great Depression, the Tennessee Valley Authority outlawed pet rabbits, forcing many to hot glue-gun long ears onto their pet mice.', 'The situation is hopeless.', 'Diamonds are made when coal is put under intense pressure. Diamonds put under intense pressure become foam pellets, commonly used today as packing material.', 'Corruption is at 25 percent.', 'Corruption is at 50 percent.', 'Fact: Space does not exist.', 'The Fact Sphere is not defective. Its facts are wholly accurate and very interesting.', 'The Fact Sphere is always right.', 'You will never go into space.', 'The Space Sphere will never go to space.', 'While the submarine is vastly superior to the boat in every way, over 97 percent of people still use boats for aquatic transportation.', 'The likelihood of you dying within the next five minutes is eighty-seven point six one percent.', 'The likelihood of you dying violently within the next five minutes is eighty-seven point six one percent.', 'You are about to get me killed.', 'The Fact Sphere is the most intelligent sphere.', 'The Fact Sphere is the most handsome sphere.', 'The Fact Sphere is incredibly handsome.', 'Sphere that insist of going into space are inferior to spheres who don\'t.', 'Whoever wins this battle is clearly superior, and will earn the allegiance of the Fact Sphere.', 'You could stand to lose a few pounds.', 'Avocados have the highest fiber and calories of any fruit.', 'Avocados have the highest fiber and calories of any fruit. They are found in Australians.', 'Every square inch of the human body has 32 million bacteria on it.', 'The average adult body contains half a pound of salt.', 'The Adventure Sphere is a blowhard and a coward.', 'Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve.', 'Pens. Pens. Pens. Pens. Pens. Pens. Pens.', 'Apples. Oranges. Pears. Plums. Kumquats. Tangerines. Lemons. Limes. Avocado. Tomoato. Banana. Papaya. Guava.', 'Error. Error. Error. File not found.', 'Error. Error. Error. Fact not found.', 'Fact not found.', 'Warning, sphere corruption at twenty-- rats cannot throw up.']; facts = facts[Math.floor(Math.random() * facts.length)]; return message.say(facts); } diff --git a/commands/response/fortune.js b/commands/response/fortune.js index 5c131422..451486d0 100644 --- a/commands/response/fortune.js +++ b/commands/response/fortune.js @@ -19,7 +19,7 @@ module.exports = class FortuneCookieCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } console.log(`[Command] ${message.content}`); - let fortunes = ["Do not seek so much to find the answer as much as to understand the question better.", "You will soon be honored by someone you respect.", "Happiness comes from a good life.", "You are contemplating some action which will bring credit upon you.", "Be prepared for extra energy.", "You are admired for your adventurous ways.", "The love of your life is sitting across from you.", "Beauty is simply beauty. Originality is magical.", "Never quit!", "Today is an ideal time to water your personal garden.", "Questions provide the key to unlocking our unlimited potential.", "Expect great things and great things will come.", "The Greatest War Sometimes Isn't On The Battlefield But Against Oneself.", "Become who you are.", "In case of fire, keep calm, pay bill and run.", "Anyone who dares to be, can never be weak.", "You broke my cookie!", "Dream lofty dreams, and as you dream, so shall you become.", "You've got what it takes, but it will take everything you've got!", "Trust your intuition.", "The wise are aware of their treasure, while fools follow their vanity.", "You will always have good luck in your personal affairs.", "You don't need talent to gain experience.", "All the preparation you've done will finally be paying off!", "Determination is the wake-up call to the human will.", "The most useless energy is trying to change what and who God so carefully created.", "You cannot become rich except by enriching others.", "Your happiness is intertwined with your outlook on life.", "Sing and rejoice, fortune is smiling on you.", "Well-arranged time is the surest sign of a well-arranged mind."]; + let fortunes = ['Do not seek so much to find the answer as much as to understand the question better.', 'You will soon be honored by someone you respect.', 'Happiness comes from a good life.', 'You are contemplating some action which will bring credit upon you.', 'Be prepared for extra energy.', 'You are admired for your adventurous ways.', 'The love of your life is sitting across from you.', 'Beauty is simply beauty. Originality is magical.', 'Never quit!', 'Today is an ideal time to water your personal garden.', 'Questions provide the key to unlocking our unlimited potential.', 'Expect great things and great things will come.', 'The Greatest War Sometimes Isn\'t On The Battlefield But Against Oneself.', 'Become who you are.', 'In case of fire, keep calm, pay bill and run.', 'Anyone who dares to be, can never be weak.', 'You broke my cookie!', 'Dream lofty dreams, and as you dream, so shall you become.', 'You\'ve got what it takes, but it will take everything you\'ve got!', 'Trust your intuition.', 'The wise are aware of their treasure, while fools follow their vanity.', 'You will always have good luck in your personal affairs.', 'You don\'t need talent to gain experience.', 'All the preparation you\'ve done will finally be paying off!', 'Determination is the wake-up call to the human will.', 'The most useless energy is trying to change what and who God so carefully created.', 'You cannot become rich except by enriching others.', 'Your happiness is intertwined with your outlook on life.', 'Sing and rejoice, fortune is smiling on you.', 'Well-arranged time is the surest sign of a well-arranged mind.']; fortunes = fortunes[Math.floor(Math.random() * fortunes.length)]; return message.say(fortunes); } diff --git a/commands/response/name.js b/commands/response/name.js index 197d8647..3793c9fb 100644 --- a/commands/response/name.js +++ b/commands/response/name.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class RandomNameGen extends commando.Command { +module.exports = class RandomNameCommand extends commando.Command { constructor(Client) { super(Client, { name: 'name', @@ -31,17 +31,17 @@ module.exports = class RandomNameGen extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } console.log(`[Command] ${message.content}`); - let randomFirstMale = ["Bob", "Daniel", "Logan", "Chris", "Nathan", "George", "Mart", "Charlie", "Felix", "Ralph", "William", "Max", "Jerry", "Marty", "Joshua", "Cody", "Richard", "Alex", "Alexander", "Jordan", "Zachary", "Bill", "Alfred", "Bruce", "Caiden", "Calvin", "Eric", "Robert", "Mark", "Miles", "Nash", "Ronald", "Ivan", "Edgar", "Royal", "Augustine", "Dominic", "Noel", "Rocky", "Grover", "Paul", "Jeremy", "Stevie", "Brock", "Jc", "Tony", "Enoch", "Zachery", "Harvey", "Gilbert", "Chang", "Emery", "Carroll", "Odell", "Jean", "Archie", "Russ", "Barry", "Lowell", "Jacob", "Riku", "Frederic", "Levi", "Faustino", "Leland", "Domenic", "Irwin", "Moises", "Louie", "Larry", "Victor"]; + let randomFirstMale = ['Bob', 'Daniel', 'Logan', 'Chris', 'Nathan', 'George', 'Mart', 'Charlie', 'Felix', 'Ralph', 'William', 'Max', 'Jerry', 'Marty', 'Joshua', 'Cody', 'Richard', 'Alex', 'Alexander', 'Jordan', 'Zachary', 'Bill', 'Alfred', 'Bruce', 'Caiden', 'Calvin', 'Eric', 'Robert', 'Mark', 'Miles', 'Nash', 'Ronald', 'Ivan', 'Edgar', 'Royal', 'Augustine', 'Dominic', 'Noel', 'Rocky', 'Grover', 'Paul', 'Jeremy', 'Stevie', 'Brock', 'Jc', 'Tony', 'Enoch', 'Zachery', 'Harvey', 'Gilbert', 'Chang', 'Emery', 'Carroll', 'Odell', 'Jean', 'Archie', 'Russ', 'Barry', 'Lowell', 'Jacob', 'Riku', 'Frederic', 'Levi', 'Faustino', 'Leland', 'Domenic', 'Irwin', 'Moises', 'Louie', 'Larry', 'Victor']; randomFirstMale = randomFirstMale[Math.floor(Math.random() * randomFirstMale.length)]; - let randomFirstFemale = ["Elizabeth", "Chelsey", "Rachel", "Logan", "Alex", "Jordan", "Mary", "Shirley", "Sandy", "Linda", "Audrey", "Autumn", "Gracie", "Grace", "Erin", "Catherine", "Stephanie", "Lucy", "Patty", "Julie", "Christina", "Fiona", "Riley", "Ashley", "Bree", "Lucila", "Wendi", "Evangelina", "Ricki", "Merna", "Tegan", "Venus", "Claris", "Tana", "Sakura", "Edythe", "Adena", "Princess", "Elnora", "Star", "Edyth", "Beverly", "Kelsie", "Letha", "Latisha", "Lolita", "Bernandine", "Jessenia", "Hannah", "Leonore", "Alene", "Fannie", "Bernardine", "Leena", "Tera", "Yvette", "Melisa", "Alissa", "Xiao", "Richelle", "Bridgett", "Sumiko", "Paulette", "Charlott", "Honey", "Veola", "Sherita", "Amanda", "Vannessa", "April", "Ruth"]; + let randomFirstFemale = ['Elizabeth', 'Chelsey', 'Rachel', 'Logan', 'Alex', 'Jordan', 'Mary', 'Shirley', 'Sandy', 'Linda', 'Audrey', 'Autumn', 'Gracie', 'Grace', 'Erin', 'Catherine', 'Stephanie', 'Lucy', 'Patty', 'Julie', 'Christina', 'Fiona', 'Riley', 'Ashley', 'Bree', 'Lucila', 'Wendi', 'Evangelina', 'Ricki', 'Merna', 'Tegan', 'Venus', 'Claris', 'Tana', 'Sakura', 'Edythe', 'Adena', 'Princess', 'Elnora', 'Star', 'Edyth', 'Beverly', 'Kelsie', 'Letha', 'Latisha', 'Lolita', 'Bernandine', 'Jessenia', 'Hannah', 'Leonore', 'Alene', 'Fannie', 'Bernardine', 'Leena', 'Tera', 'Yvette', 'Melisa', 'Alissa', 'Xiao', 'Richelle', 'Bridgett', 'Sumiko', 'Paulette', 'Charlott', 'Honey', 'Veola', 'Sherita', 'Amanda', 'Vannessa', 'April', 'Ruth']; randomFirstFemale = randomFirstFemale[Math.floor(Math.random() * randomFirstFemale.length)]; - let randomLast = ["Walker", "Tworni", "Ross", "Smith", "Odendahl", "Deere", "Brown", "Williams", "Jones", "Miles", "Moss", "Roberto", "McFly", "McDonald", "Lewis", "Armstrong", "Stevenson", "Schwarzenegger", "Robinson", "Parker", "Piper", "Johnson", "Brantley", "Stewart", "Ree", "Talbot", "Seville", "Peace", "Spielberg", "Baggins", "Wilborn", "Vankirk", "Shireman", "Jimerson", "Masters", "Hack", "Satcher", "Younkin", "Aguila", "Duffey", "Burgin", "Highfall", "Wee", "Solari", "Tomaselli", "Basler", "Difranco", "Latch", "Rives", "Dolan", "Abraham", "Holter", "Portugal", "Lininger", "Holst", "Mccroy", "Follmer", "Hotchkiss", "Gassaway", "Wang", "Agron", "Raasch", "Gourd", "Czaja", "Marquart", "Papadopoulos", "Ringer", "Lax", "Sperling", "Galusha", "Alston"]; + let randomLast = ['Walker', 'Tworni', 'Ross', 'Smith', 'Odendahl', 'Deere', 'Brown', 'Williams', 'Jones', 'Miles', 'Moss', 'Roberto', 'McFly', 'McDonald', 'Lewis', 'Armstrong', 'Stevenson', 'Schwarzenegger', 'Robinson', 'Parker', 'Piper', 'Johnson', 'Brantley', 'Stewart', 'Ree', 'Talbot', 'Seville', 'Peace', 'Spielberg', 'Baggins', 'Wilborn', 'Vankirk', 'Shireman', 'Jimerson', 'Masters', 'Hack', 'Satcher', 'Younkin', 'Aguila', 'Duffey', 'Burgin', 'Highfall', 'Wee', 'Solari', 'Tomaselli', 'Basler', 'Difranco', 'Latch', 'Rives', 'Dolan', 'Abraham', 'Holter', 'Portugal', 'Lininger', 'Holst', 'Mccroy', 'Follmer', 'Hotchkiss', 'Gassaway', 'Wang', 'Agron', 'Raasch', 'Gourd', 'Czaja', 'Marquart', 'Papadopoulos', 'Ringer', 'Lax', 'Sperling', 'Galusha', 'Alston']; randomLast = randomLast[Math.floor(Math.random() * randomLast.length)]; const gender = args.gender.toLowerCase(); - if (gender === "male") { + if (gender === 'male') { return message.say(`${randomFirstMale} ${randomLast}`); } - else if (gender === "female") { + else if (gender === 'female') { return message.say(`${randomFirstFemale} ${randomLast}`); } } diff --git a/commands/response/potato.js b/commands/response/potato.js index 49c30ce6..089adcc9 100644 --- a/commands/response/potato.js +++ b/commands/response/potato.js @@ -19,7 +19,7 @@ module.exports = class PotatoCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return; } console.log(`[Command] ${message.content}`); - let potato = ["1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.gif", "6.png", "7.jpg", "8.jpg", "9.jpg"]; + let potato = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.gif', '6.png', '7.jpg', '8.jpg', '9.jpg']; potato = potato[Math.floor(Math.random() * potato.length)]; return message.channel.sendFile(`./images/Potato${potato}`); } diff --git a/commands/response/pun.js b/commands/response/pun.js index 72ba7dad..998ff44c 100644 --- a/commands/response/pun.js +++ b/commands/response/pun.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class RandomPun extends commando.Command { +module.exports = class RandomPunCommand extends commando.Command { constructor(Client) { super(Client, { name: 'pun', @@ -16,8 +16,8 @@ module.exports = class RandomPun extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return; } console.log(`[Command] ${message.content}`); - let pun = ["Pun1.jpg", "Pun2.jpg", "Pun3.jpg", "Pun4.jpg", "Pun5.jpg", "Pun6.jpg", "Pun7.jpg", "Pun8.png", "Pun9.jpg", "Pun10.jpg", "Pun11.jpg", "Pun12.jpg", "Pun13.jpg", "Pun14.jpg", "Pun15.jpg", "Pun16.jpg", "Pun17.jpg", "Pun18.jpg", "Pun19.jpg", "Pun20.jpg", "Pun21.jpg", "Pun22.jpg", "Pun23.jpg", "Pun24.jpg", "Pun25.jpg", "Pun26.jpg", "Pun27.jpg", "Pun28.jpg", "Pun29.jpg", "Pun30.jpeg", "Pun31.jpg", "Pun32.jpg", "Pun33.jpg", "Pun34.png", "Pun35.jpg", "Pun36.jpg", "Pun37.jpg", "Pun38.jpg", "Pun39.jpg", "Pun40.jpg", "Pun41.jpg", "Pun42.jpg", "Pun43.jpg", "Pun44.jpg", "Pun45.gif", "Pun46.jpg", "Pun47.jpg", "Pun48.jpg", "Pun49.jpg", "Pun50.jpg", "Pun51.jpg", "Pun52.jpg", "Pun53.jpg"]; + let pun = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.png', '9.jpg', '10.jpg', '11.jpg', '12.jpg', '13.jpg', '14.jpg', '15.jpg', '16.jpg', '17.jpg', '18.jpg', '19.jpg', '20.jpg', '21.jpg', '22.jpg', '23.jpg', '24.jpg', '25.jpg', '26.jpg', '27.jpg', '28.jpg', '29.jpg', '30.jpeg', '31.jpg', '32.jpg', '33.jpg', '34.png', '35.jpg', '36.jpg', '37.jpg', '38.jpg', '39.jpg', '40.jpg', '41.jpg', '42.jpg', '43.jpg', '44.jpg', '45.gif', '46.jpg', '47.jpg', '48.jpg', '49.jpg', '50.jpg', '51.jpg', '52.jpg', '53.jpg']; pun = pun[Math.floor(Math.random() * pun.length)]; - return message.channel.sendFile(`./images/${pun}`); + return message.channel.sendFile(`./images/Pun${pun}`); } }; diff --git a/commands/response/quantumcoin.js b/commands/response/quantumcoin.js index caee8dda..29bbc239 100644 --- a/commands/response/quantumcoin.js +++ b/commands/response/quantumcoin.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class QuantumCoin extends commando.Command { +module.exports = class QuantumCoinCommand extends commando.Command { constructor(Client) { super(Client, { name: 'quantumcoin', diff --git a/commands/response/roast.js b/commands/response/roast.js index 3dcddb9a..0fb3b666 100644 --- a/commands/response/roast.js +++ b/commands/response/roast.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class RoastMeCommand extends commando.Command { +module.exports = class RoastCommand extends commando.Command { constructor(Client) { super(Client, { name: 'roast', @@ -26,7 +26,7 @@ module.exports = class RoastMeCommand extends commando.Command { } console.log(`[Command] ${message.content}`); const userToRoast = args.thing || message.author; - let roasts = ["*puts you in the oven*", "You're so stupid.", "Sorry, I can't hear you over how annoying you are.", "I've got better things to do.", "You're as dumb as Cleverbot.", "Your IQ is lower than the Mariana Trench.", "You're so annoying even the flies stay away from your stench.", "Go away, please.", "I'd give you a nasty look but you've already got one.", "It looks like your face caught fire and someone tried to put it out with a hammer.", "Your family tree must be a cactus because everyone on it is a prick.", "Someday you will go far, and I hope you stay there.", "The zoo called. They're wondering how you got out of your cage.", "I was hoping for a battle of wits, but you appear to be unarmed.", "You are proof that evolution can go in reverse.", "Brains aren't everything, in your case, they're nothing.", "Sorry I didn't get that, I don't speak idiot.", "Why is it acceptable for you to be an idiot, but not for me to point it out?", "We all sprang from apes, but you did not spring far enough.", "You're an unknown command.", "If you could go anywhere I chose, I'd choose dead.", "Even monkeys can go to space, so clearly you lack some potential.", "It's brains over brawn, yet you have neither.", "You look like a monkey, and you smell like one too.", "Even among idiots you're lacking.", "You fail even when you're doing absolutely nothing.", "If there was a vote for 'least likely to succeed' you'd win first prize.", "I'm surrounded by idiots... Or, wait, that's just you.", "I wanna go home. Well, really I just want to get away from the awful aroma you've got going there.", "Every time you touch me I have to go home and wash all my clothes nine times just to get a normal smell back.", "If I had a nickel for every brain you don't have, I'd have one dollar.", "I'd help you succeed but you're incapable."]; + let roasts = ['*puts you in the oven*', 'You\'re so stupid.', 'Sorry, I can\'t hear you over how annoying you are.', 'I\'ve got better things to do.', 'You\'re as dumb as Cleverbot.', 'Your IQ is lower than the Mariana Trench.', 'You\'re so annoying even the flies stay away from your stench.', 'Go away, please.', 'I\'d give you a nasty look but you\'ve already got one.', 'It looks like your face caught fire and someone tried to put it out with a hammer.', 'Your family tree must be a cactus because everyone on it is a prick.', 'Someday you will go far, and I hope you stay there.', 'The zoo called. They\'re wondering how you got out of your cage.', 'I was hoping for a battle of wits, but you appear to be unarmed.', 'You are proof that evolution can go in reverse.', 'Brains aren\'t everything, in your case, they\'re nothing.', 'Sorry I didn\'t get that, I don\'t speak idiot.', 'Why is it acceptable for you to be an idiot, but not for me to point it out?', 'We all sprang from apes, but you did not spring far enough.', 'You\'re an unknown command.', 'If you could go anywhere I chose, I\'d choose dead.', 'Even monkeys can go to space, so clearly you lack some potential.', 'It\'s brains over brawn, yet you have neither.', 'You look like a monkey, and you smell like one too.', 'Even among idiots you\'re lacking.', 'You fail even when you\'re doing absolutely nothing.', 'If there was a vote for \'least likely to succeed\' you\'d win first prize.', 'I\'m surrounded by idiots... Or, wait, that\'s just you.', 'I wanna go home. Well, really I just want to get away from the awful aroma you\'ve got going there.', 'Every time you touch me I have to go home and wash all my clothes nine times just to get a normal smell back.', 'If I had a dollar for every brain you don\'t have, I\'d have one dollar.', 'I\'d help you succeed but you\'re incapable.']; roasts = roasts[Math.floor(Math.random() * roasts.length)]; if (!userToRoast) { return message.reply(roasts); diff --git a/commands/response/roll.js b/commands/response/roll.js index 792e1d63..c0c1b70a 100644 --- a/commands/response/roll.js +++ b/commands/response/roll.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class RollChooseCommand extends commando.Command { +module.exports = class RollCommand extends commando.Command { constructor(Client) { super(Client, { name: 'roll', diff --git a/commands/response/roulette.js b/commands/response/roulette.js index ada51d65..9255870a 100644 --- a/commands/response/roulette.js +++ b/commands/response/roulette.js @@ -13,7 +13,7 @@ module.exports = class RouletteCommand extends commando.Command { group: 'response', memberName: 'roulette', description: 'Chooses a random member. (;roulette Who is the best?)', - examples: [";roulette Who is the best?"], + examples: [';roulette Who is the best?'], guildOnly: true }); } diff --git a/commands/response/vocaloid.js b/commands/response/vocaloid.js index 316cd1aa..b2d8f0c9 100644 --- a/commands/response/vocaloid.js +++ b/commands/response/vocaloid.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class VocaloidSongRndm extends commando.Command { +module.exports = class VocaloidCommand extends commando.Command { constructor(Client) { super(Client, { name: 'vocaloid', @@ -19,7 +19,7 @@ module.exports = class VocaloidSongRndm extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } console.log(`[Command] ${message.content}`); - let songs = ["https://www.youtube.com/watch?v=ebAKoRcYFTA", "https://www.youtube.com/watch?v=Mqps4anhz0Q", "https://www.youtube.com/watch?v=AUEiHQOCQ2M", "https://www.youtube.com/watch?v=oyteTOBxRm8", "https://www.youtube.com/watch?v=uwwU55zBYlQ", "https://www.youtube.com/watch?v=sSYoz0JmnZo", "https://www.youtube.com/watch?v=NpU4dsXW6EI", "https://www.youtube.com/watch?v=MzyXD8bNbvk", "https://www.youtube.com/watch?v=hyV4qGAPKac", "https://www.youtube.com/watch?v=pywNi6gD1FA", "https://www.youtube.com/watch?v=17FEtaiWdVg", "https://www.youtube.com/watch?v=fmrA-gxJxgQ", "https://www.youtube.com/watch?v=yOBWgSPrYVA", "https://www.youtube.com/watch?v=nCaqf9WhqOY", "https://www.youtube.com/watch?v=cQKGUgOfD8U", "https://www.youtube.com/watch?v=sK92X82T3Sk", "https://www.youtube.com/watch?v=AH5_sKwDw1E", "https://www.youtube.com/watch?v=dw-KJNqcK-Q", "https://www.youtube.com/watch?v=X47JmmqbMvc", "https://www.youtube.com/watch?v=ojQPpYVQt7U", "https://www.amazon.com/Gogatsu-Yamai-feat-Kagamine-Len/dp/B00P1BG27S", "https://www.youtube.com/watch?v=N1-Z8uslIsI", "https://www.youtube.com/watch?v=EAgk-t2zzqw", "https://www.youtube.com/watch?v=uLBC2kWYFo8", "https://www.youtube.com/watch?v=OXHYIlkZLUU", "https://www.youtube.com/watch?v=ObIa9wXbyMQ", "https://www.youtube.com/watch?v=dGNoCICGmo0", "https://www.youtube.com/watch?v=LcoyEZkTKfY", "https://www.youtube.com/watch?v=mKHaW0qd5Mw", "https://www.youtube.com/watch?v=GG627DYk_E4", "https://www.youtube.com/watch?v=jTm6Q5Pj_Jo", "https://www.youtube.com/watch?v=TVeIDmk3rBo", "https://www.youtube.com/watch?v=1K3in6w9tt4", "https://www.youtube.com/watch?v=07r67gGbtLQ", "https://www.youtube.com/watch?v=243vPl8HdVk", "https://www.youtube.com/watch?v=zweVJrnE1uY", "https://www.youtube.com/watch?v=RKtoreimcQ8", "https://www.youtube.com/watch?v=Je6dCVfHvkU", "https://www.youtube.com/watch?v=UxFv12y_evM", "https://www.youtube.com/watch?v=2HegQtmJeto", "https://www.youtube.com/watch?v=8-Epnpruww0"]; + let songs = ['https://www.youtube.com/watch?v=ebAKoRcYFTA', 'https://www.youtube.com/watch?v=Mqps4anhz0Q', 'https://www.youtube.com/watch?v=AUEiHQOCQ2M', 'https://www.youtube.com/watch?v=oyteTOBxRm8', 'https://www.youtube.com/watch?v=uwwU55zBYlQ', 'https://www.youtube.com/watch?v=sSYoz0JmnZo', 'https://www.youtube.com/watch?v=NpU4dsXW6EI', 'https://www.youtube.com/watch?v=MzyXD8bNbvk', 'https://www.youtube.com/watch?v=hyV4qGAPKac', 'https://www.youtube.com/watch?v=pywNi6gD1FA', 'https://www.youtube.com/watch?v=17FEtaiWdVg', 'https://www.youtube.com/watch?v=fmrA-gxJxgQ', 'https://www.youtube.com/watch?v=yOBWgSPrYVA', 'https://www.youtube.com/watch?v=nCaqf9WhqOY', 'https://www.youtube.com/watch?v=cQKGUgOfD8U', 'https://www.youtube.com/watch?v=sK92X82T3Sk', 'https://www.youtube.com/watch?v=AH5_sKwDw1E', 'https://www.youtube.com/watch?v=dw-KJNqcK-Q', 'https://www.youtube.com/watch?v=X47JmmqbMvc', 'https://www.youtube.com/watch?v=ojQPpYVQt7U', 'https://www.amazon.com/Gogatsu-Yamai-feat-Kagamine-Len/dp/B00P1BG27S', 'https://www.youtube.com/watch?v=N1-Z8uslIsI', 'https://www.youtube.com/watch?v=EAgk-t2zzqw', 'https://www.youtube.com/watch?v=uLBC2kWYFo8', 'https://www.youtube.com/watch?v=OXHYIlkZLUU', 'https://www.youtube.com/watch?v=ObIa9wXbyMQ', 'https://www.youtube.com/watch?v=dGNoCICGmo0', 'https://www.youtube.com/watch?v=LcoyEZkTKfY', 'https://www.youtube.com/watch?v=mKHaW0qd5Mw', 'https://www.youtube.com/watch?v=GG627DYk_E4', 'https://www.youtube.com/watch?v=jTm6Q5Pj_Jo', 'https://www.youtube.com/watch?v=TVeIDmk3rBo', 'https://www.youtube.com/watch?v=1K3in6w9tt4', 'https://www.youtube.com/watch?v=07r67gGbtLQ', 'https://www.youtube.com/watch?v=243vPl8HdVk', 'https://www.youtube.com/watch?v=zweVJrnE1uY', 'https://www.youtube.com/watch?v=RKtoreimcQ8', 'https://www.youtube.com/watch?v=Je6dCVfHvkU', 'https://www.youtube.com/watch?v=UxFv12y_evM', 'https://www.youtube.com/watch?v=2HegQtmJeto', 'https://www.youtube.com/watch?v=8-Epnpruww0']; songs = songs[Math.floor(Math.random() * songs.length)]; return message.say(songs); } diff --git a/commands/response/xiaopai.js b/commands/response/xiaopai.js index b35b9ed1..b65fce8a 100644 --- a/commands/response/xiaopai.js +++ b/commands/response/xiaopai.js @@ -1,6 +1,6 @@ const commando = require('discord.js-commando'); -module.exports = class RandomXiaoPai extends commando.Command { +module.exports = class XiaoCommand extends commando.Command { constructor(Client) { super(Client, { name: 'xiaopai', @@ -19,7 +19,7 @@ module.exports = class RandomXiaoPai extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return; } console.log(`[Command] ${message.content}`); - let XiaoPai = ["1.png", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.png", "9.png", "10.png", "11.png", "12.png", "13.jpg", "14.jpg", "15.png", "16.jpg", "17.png", "18.gif", "19.png", "20.jpg", "21.jpg"]; + let XiaoPai = ['1.png', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.png', '9.png', '10.png', '11.png', '12.png', '13.jpg', '14.jpg', '15.png', '16.jpg', '17.png', '18.gif', '19.png', '20.jpg', '21.jpg']; XiaoPai = XiaoPai[Math.floor(Math.random() * XiaoPai.length)]; return message.channel.sendFile(`./images/Xiao${XiaoPai}`); } diff --git a/commands/search/app-store.js b/commands/search/app-store.js index 8d8567ea..8b720b9c 100644 --- a/commands/search/app-store.js +++ b/commands/search/app-store.js @@ -57,7 +57,7 @@ module.exports = class AppStoreCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Something went wrong!"); + return message.say(':x: Error! Something went wrong!'); } } }; diff --git a/commands/search/botinfo.js b/commands/search/botinfo.js index e7cb6276..00c1c95d 100644 --- a/commands/search/botinfo.js +++ b/commands/search/botinfo.js @@ -51,7 +51,7 @@ module.exports = class BotSearchCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Bot not Found!"); + return message.say(':x: Error! Bot not Found!'); } } }; diff --git a/commands/search/define.js b/commands/search/define.js index 2d5369b9..7272ec7f 100644 --- a/commands/search/define.js +++ b/commands/search/define.js @@ -49,7 +49,7 @@ module.exports = class DefineCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Word not Found!"); + return message.say(':x: Error! Word not Found!'); } } }; diff --git a/commands/search/forecast.js b/commands/search/forecast.js index b93d55b5..2f1f90b8 100644 --- a/commands/search/forecast.js +++ b/commands/search/forecast.js @@ -58,7 +58,7 @@ module.exports = class ForecastCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Make sure you typed the location correctly!"); + return message.say(':x: Error! Make sure you typed the location correctly!'); } } }; diff --git a/commands/search/neopet.js b/commands/search/neopet.js index b36947f1..4df11333 100644 --- a/commands/search/neopet.js +++ b/commands/search/neopet.js @@ -6,7 +6,7 @@ module.exports = class NeopetCommand extends commando.Command { name: 'neopet', group: 'search', memberName: 'neopet', - description: "Gives a Neopet's image, searchable by ID. (;neopet rjwlsb8k)", + description: 'Gives a Neopet\'s image, searchable by ID. (;neopet rjwlsb8k)', examples: [';neopet rjwlsb8k'], args: [{ key: 'pet', diff --git a/commands/search/osu.js b/commands/search/osu.js index 5530c294..fb17f10c 100644 --- a/commands/search/osu.js +++ b/commands/search/osu.js @@ -70,7 +70,7 @@ module.exports = class OsuCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! User not Found!"); + return message.say(':x: Error! User not Found!'); } } }; diff --git a/commands/search/pokedex.js b/commands/search/pokedex.js index 3eaa8a56..f2b990b4 100644 --- a/commands/search/pokedex.js +++ b/commands/search/pokedex.js @@ -38,7 +38,7 @@ module.exports = class PokedexCommand extends commando.Command { .setAuthor(`#${pokedex.index[pokemon]} ${pokedex.name[pokemon]}`, `http://www.serebii.net/pokedex-sm/icon/${pokedex.index[pokemon]}.png`) .setColor(0xFF0000) .setDescription(pokedex.species[pokemon]) - .setFooter("Pokédex", "http://cdn.bulbagarden.net/upload/thumb/3/36/479Rotom-Pokédex.png/250px-479Rotom-Pokédex.png") + .setFooter('Pokédex', 'http://cdn.bulbagarden.net/upload/thumb/3/36/479Rotom-Pokédex.png/250px-479Rotom-Pokédex.png') .setThumbnail(`http://www.serebii.net/sunmoon/pokemon/${pokedex.index[pokemon]}.png`) .addField('Entry', pokedex.entry[pokemon]) diff --git a/commands/search/urban.js b/commands/search/urban.js index a6631bac..9604742a 100644 --- a/commands/search/urban.js +++ b/commands/search/urban.js @@ -2,7 +2,7 @@ const commando = require('discord.js-commando'); const Discord = require('discord.js'); const request = require('superagent'); -module.exports = class UrbanDictionary extends commando.Command { +module.exports = class UrbanCommand extends commando.Command { constructor(Client) { super(Client, { name: 'urban', diff --git a/commands/search/wattpad.js b/commands/search/wattpad.js index 4a771af5..70b19c34 100644 --- a/commands/search/wattpad.js +++ b/commands/search/wattpad.js @@ -57,7 +57,7 @@ module.exports = class WattpadCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Book not Found!"); + return message.say(':x: Error! Book not Found!'); } } }; diff --git a/commands/search/weather.js b/commands/search/weather.js index 0d839eff..501bd732 100644 --- a/commands/search/weather.js +++ b/commands/search/weather.js @@ -64,7 +64,7 @@ module.exports = class WeatherCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Make sure you typed the location correctly!"); + return message.say(':x: Error! Make sure you typed the location correctly!'); } } }; diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index f5ca7d5f..e2033e31 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -23,7 +23,7 @@ module.exports = class WikipediaCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return; } console.log(`[Command] ${message.content}`); - const thingToSearch = args.query.split(")").join("%29"); + const thingToSearch = args.query.split(')').join('%29'); const title = encodeURI(thingToSearch); try { const response = await request @@ -44,12 +44,12 @@ module.exports = class WikipediaCommand extends commando.Command { .setColor(0xE7E7E7) .setTitle(data.title) .setURL(`https://en.wikipedia.org/wiki/${title}`) - .setAuthor("Wikipedia", "https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/1122px-Wikipedia-logo-v2.svg.png") + .setAuthor('Wikipedia', 'https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/1122px-Wikipedia-logo-v2.svg.png') .setDescription(description); return message.embed(embed); } catch (err) { - return message.say(":x: Error! Entry Not Found!"); + return message.say(':x: Error! Entry Not Found!'); } } }; diff --git a/commands/search/youtube.js b/commands/search/youtube.js index d1a2430e..59537292 100644 --- a/commands/search/youtube.js +++ b/commands/search/youtube.js @@ -49,7 +49,7 @@ module.exports = class YouTubeCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Something went wrong! Maybe no video was found?"); + return message.say(':x: Error! Something went wrong! Maybe no video was found?'); } } }; diff --git a/commands/search/yugioh.js b/commands/search/yugioh.js index 6fa8ddb8..64e0d386 100644 --- a/commands/search/yugioh.js +++ b/commands/search/yugioh.js @@ -58,7 +58,7 @@ module.exports = class YuGiOhCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Card not Found!\n:notepad_spiral: Note: This command is **extremely** sensitive to casing and dashes and whatnot. Type the *exact* card name to get data!"); + return message.say(':x: Error! Card not Found!\n:notepad_spiral: Note: This command is **extremely** sensitive to casing and dashes and whatnot. Type the *exact* card name to get data!'); } } }; diff --git a/commands/textedit/cowsay.js b/commands/textedit/cowsay.js index 9242f5a7..55a1a1d5 100644 --- a/commands/textedit/cowsay.js +++ b/commands/textedit/cowsay.js @@ -25,8 +25,8 @@ module.exports = class CowsayCommand extends commando.Command { const turnToCowsay = args.text; return message.code(null, cowsay.say({ text: turnToCowsay, - e: "oO", - T: "U " + e: 'oO', + T: 'U ' })).catch(error => message.say(':x: Error! Perhaps the content is too long?')); } }; diff --git a/commands/textedit/embed.js b/commands/textedit/embed.js index 68235a33..5f529073 100644 --- a/commands/textedit/embed.js +++ b/commands/textedit/embed.js @@ -23,7 +23,7 @@ module.exports = class EmbedCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return; } console.log(`[Command] ${message.content}`); - const embedMessage = message.content.split(" ").slice(1).join(" "); + const embedMessage = message.content.split(' ').slice(1).join(' '); const embed = new Discord.RichEmbed() .setAuthor(message.author.username, message.author.avatarURL) .setColor(0x00AE86) diff --git a/commands/textedit/pirate.js b/commands/textedit/pirate.js index b39e3f6d..572303d2 100644 --- a/commands/textedit/pirate.js +++ b/commands/textedit/pirate.js @@ -34,7 +34,7 @@ module.exports = class PirateCommand extends commando.Command { console.log(`[Command] ${message.content}`); const turnToPirate = args.text; const pirate = pirateSpeak.translate(turnToPirate); - if (pirate.length > 1950) return message.say(":x: Error! Your message is too long!"); + if (pirate.length > 1950) return message.say(':x: Error! Your message is too long!'); return message.say(pirate); } }; diff --git a/commands/textedit/reverse.js b/commands/textedit/reverse.js index 1b65e7ac..aa4f8fcc 100644 --- a/commands/textedit/reverse.js +++ b/commands/textedit/reverse.js @@ -22,7 +22,7 @@ module.exports = class ReverseCommand extends commando.Command { } console.log(`[Command] ${message.content}`); const stringToReverse = args.text; - const reversed = stringToReverse.split("").reverse().join(""); + const reversed = stringToReverse.split('').reverse().join(''); return message.say(reversed); } }; diff --git a/commands/textedit/shuffle.js b/commands/textedit/shuffle.js index 346bc995..ea3404ac 100644 --- a/commands/textedit/shuffle.js +++ b/commands/textedit/shuffle.js @@ -1,7 +1,7 @@ const commando = require('discord.js-commando'); String.prototype.shuffle = function() { - let a = this.split(""), + let a = this.split(''), n = a.length; for (let i = n - 1; i > 0; i--) { let j = Math.floor(Math.random() * (i + 1)); @@ -9,7 +9,7 @@ String.prototype.shuffle = function() { a[i] = a[j]; a[j] = tmp; } - return a.join(""); + return a.join(''); }; module.exports = class ShuffleCommand extends commando.Command { diff --git a/commands/textedit/temmie.js b/commands/textedit/temmie.js index 9538064e..b87ae005 100644 --- a/commands/textedit/temmie.js +++ b/commands/textedit/temmie.js @@ -7,8 +7,8 @@ module.exports = class TemmieCommand extends commando.Command { name: 'temmie', group: 'textedit', memberName: 'temmie', - description: "Translate text to Temmie speak. (;temmie I am Temmie)", - examples: [";temmie I am Temmie."], + description: 'Translate text to Temmie speak. (;temmie I am Temmie)', + examples: [';temmie I am Temmie.'], args: [{ key: 'text', prompt: 'What text would you like to convert to Temmie speak?', diff --git a/commands/textedit/temmize.js b/commands/textedit/temmize.js index b6760bf4..7e27427f 100644 --- a/commands/textedit/temmize.js +++ b/commands/textedit/temmize.js @@ -255,31 +255,31 @@ function isLetter(character) { } function translator(text) { - let translatedText = ""; - let word = ""; + let translatedText = ''; + let word = ''; for (let i = 0; i < text.length; i += 1) { let character = text[i]; if (isLetter(character)) { word += character; } else { - if (word != "") { + if (word != '') { let wordTranslate = translateWord(word); translatedText += wordTranslate; - word = ""; + word = ''; } translatedText += character; } } - if (word !== "") translatedText += translateWord(word); + if (word !== '') translatedText += translateWord(word); return translatedText; } module.exports = function(text) { let currentTranslation = translator(text); - let temmify = currentTranslation.split("ing").join("in").split("!").join("!!!!111!11!1!!!1!!!1111!").split("'").join(""); + let temmify = currentTranslation.split('ing').join('in').split('!').join('!!!!111!11!1!!!1!!!1111!').split("'").join(''); return temmify; }; diff --git a/commands/textedit/translate.js b/commands/textedit/translate.js index ce919f34..b2f16258 100644 --- a/commands/textedit/translate.js +++ b/commands/textedit/translate.js @@ -115,7 +115,7 @@ module.exports = class TranslateCommand extends commando.Command { group: 'textedit', memberName: 'translate', description: 'Translates text to a given language. (;translate ja Give me the money!)', - details: "**Codes:** af: Afrikaans, sq: Albanian, ar: Arabic, hy: Armenian, az: Azerbaijani, eu: Basque, be: Belarusian, bn: Bengali, bs: Bosnian, bg: Bulgarian, ca: Catalan, ceb: Cebuano, ny: Chichewa, zh-cn: Chinese Simplified, zh-tw: Chinese Traditional, co: Corsican, hr: Croatian, cs: Czech, da: Danish, nl: Dutch, en: English, eo: Esperanto, et: Estonian, tl: Filipino, fi: Finnish, fr: French, fy: Frisian, gl: Galician, ka: Georgian, de: German, el: Greek, gu: Gujarati, ht: Haitian Creole, ha: Hausa, haw: Hawaiian, iw: Hebrew, hi: Hindi, hmn: Hmong, hu: Hungarian, is: Icelandic, ig: Igbo, id: Indonesian, ga: Irish, it: Italian, ja: Japanese, jw: Javanese, kn: Kannada, kk: Kazakh, km: Khmer, ko: Korean, ku: Kurdish (Kurmanji), ky: Kyrgyz, lo: Lao, la: Latin, lv: Latvian, lt: Lithuanian, lb: Luxembourgish, mk: Macedonian, mg: Malagasy, ms: Malay, ml: Malayalam, mt: Maltese, mi: Maori, mr: Marathi, mn: Mongolian, my: Myanmar (Burmese), ne: Nepali, no: Norwegian, ps: Pashto, fa: Persian, pl: Polish, pt: Portuguese, ma: Punjabi, ro: Romanian, ru: Russian, sm: Samoan, gd: Scots Gaelic, sr: Serbian, st: Sesotho, sn: Shona, sd: Sindhi, si: Sinhala, sk: Slovak, sl: Slovenian, so: Somali, es: Spanish, su: Sudanese, sw: Swahili, sv: Swedish, tg: Tajik, ta: Tamil, te: Telugu, th: Thai, tr: Turkish, uk: Ukrainian, ur: Urdu, uz: Uzbek, vi: Vietnamese, cy: Welsh, xh: Xhosa, yi: Yiddish, yo: Yoruba, zu: Zulu", + details: '**Codes:** af: Afrikaans, sq: Albanian, ar: Arabic, hy: Armenian, az: Azerbaijani, eu: Basque, be: Belarusian, bn: Bengali, bs: Bosnian, bg: Bulgarian, ca: Catalan, ceb: Cebuano, ny: Chichewa, zh-cn: Chinese Simplified, zh-tw: Chinese Traditional, co: Corsican, hr: Croatian, cs: Czech, da: Danish, nl: Dutch, en: English, eo: Esperanto, et: Estonian, tl: Filipino, fi: Finnish, fr: French, fy: Frisian, gl: Galician, ka: Georgian, de: German, el: Greek, gu: Gujarati, ht: Haitian Creole, ha: Hausa, haw: Hawaiian, iw: Hebrew, hi: Hindi, hmn: Hmong, hu: Hungarian, is: Icelandic, ig: Igbo, id: Indonesian, ga: Irish, it: Italian, ja: Japanese, jw: Javanese, kn: Kannada, kk: Kazakh, km: Khmer, ko: Korean, ku: Kurdish (Kurmanji), ky: Kyrgyz, lo: Lao, la: Latin, lv: Latvian, lt: Lithuanian, lb: Luxembourgish, mk: Macedonian, mg: Malagasy, ms: Malay, ml: Malayalam, mt: Maltese, mi: Maori, mr: Marathi, mn: Mongolian, my: Myanmar (Burmese), ne: Nepali, no: Norwegian, ps: Pashto, fa: Persian, pl: Polish, pt: Portuguese, ma: Punjabi, ro: Romanian, ru: Russian, sm: Samoan, gd: Scots Gaelic, sr: Serbian, st: Sesotho, sn: Shona, sd: Sindhi, si: Sinhala, sk: Slovak, sl: Slovenian, so: Somali, es: Spanish, su: Sudanese, sw: Swahili, sv: Swedish, tg: Tajik, ta: Tamil, te: Telugu, th: Thai, tr: Turkish, uk: Ukrainian, ur: Urdu, uz: Uzbek, vi: Vietnamese, cy: Welsh, xh: Xhosa, yi: Yiddish, yo: Yoruba, zu: Zulu', examples: [';translate ja Give me the the money!'], args: [{ key: 'to', @@ -162,7 +162,7 @@ module.exports = class TranslateCommand extends commando.Command { return message.embed(embed); } catch (err) { - return message.say(":x: Error! Something went wrong!"); + return message.say(':x: Error! Something went wrong!'); } } }; diff --git a/commands/textedit/webhook.js b/commands/textedit/webhook.js index 20d26299..1d95fe7f 100644 --- a/commands/textedit/webhook.js +++ b/commands/textedit/webhook.js @@ -12,8 +12,8 @@ module.exports = class WebhookCommand extends commando.Command { ], group: 'textedit', memberName: 'webhook', - description: "Posts a message to the webhook defined in config. (;webhook Hey guys!)", - examples: [";webhook Hey guys!"], + description: 'Posts a message to the webhook defined in config. (;webhook Hey guys!)', + examples: [';webhook Hey guys!'], guildOnly: true, args: [{ key: 'text', @@ -39,7 +39,7 @@ module.exports = class WebhookCommand extends commando.Command { .send({ content: content }); - return; + return null; } catch (err) { return message.say(':x: Error! Message failed to send!'); diff --git a/commands/textedit/yoda.js b/commands/textedit/yoda.js index bdf29089..788ca4df 100644 --- a/commands/textedit/yoda.js +++ b/commands/textedit/yoda.js @@ -37,7 +37,7 @@ module.exports = class YodaCommand extends commando.Command { return message.say(response.text); } catch (err) { - return message.say(":x: Error! Something went wrong!"); + return message.say(':x: Error! Something went wrong!'); } } }; diff --git a/commands/userinfo/avatar.js b/commands/userinfo/avatar.js index 7dde98e8..f1c8768b 100644 --- a/commands/userinfo/avatar.js +++ b/commands/userinfo/avatar.js @@ -6,8 +6,8 @@ module.exports = class AvatarCommand extends commando.Command { name: 'avatar', group: 'userinfo', memberName: 'avatar', - description: "Gives a link to someone's avatar. (;avatar @User)", - examples: [";avatar @XiaoBot"], + description: 'Gives a link to someone\'s avatar. (;avatar @User)', + examples: [';avatar @XiaoBot'], args: [{ key: 'user', prompt: 'Which user would you like to get the avatar of?', diff --git a/commands/userinfo/userinfo.js b/commands/userinfo/userinfo.js index e0c9e844..969a7005 100644 --- a/commands/userinfo/userinfo.js +++ b/commands/userinfo/userinfo.js @@ -14,8 +14,8 @@ module.exports = class UserInfoCommand extends commando.Command { ], group: 'userinfo', memberName: 'user', - description: "Gives some info on a user. (;user @User)", - examples: [";user @User"], + description: 'Gives some info on a user. (;user @User)', + examples: [';user @User'], guildOnly: true, args: [{ key: 'user', @@ -34,20 +34,20 @@ module.exports = class UserInfoCommand extends commando.Command { let stat; let color; switch (user.presence.status) { - case "online": - stat = "<:vpOnline:212789758110334977> Online"; + case 'online': + stat = '<:vpOnline:212789758110334977> Online'; color = 0x00AE86; break; - case "idle": - stat = "<:vpAway:212789859071426561> Idle"; + case 'idle': + stat = '<:vpAway:212789859071426561> Idle'; color = 0xFFFF00; break; - case "dnd": - stat = "<:vpDnD:230093576355184640> Do Not Disturb"; + case 'dnd': + stat = '<:vpDnD:230093576355184640> Do Not Disturb'; color = 0xFF0000; break; - case "offline": - stat = "<:vpOffline:212790005943369728> Offline"; + case 'offline': + stat = '<:vpOffline:212790005943369728> Offline'; color = 0x808080; break; } diff --git a/commands/util/sendDM.js b/commands/util/sendDM.js index 92e6c2fe..80280270 100644 --- a/commands/util/sendDM.js +++ b/commands/util/sendDM.js @@ -10,8 +10,8 @@ module.exports = class SendDMCommand extends commando.Command { ], group: 'util', memberName: 'senddm', - description: "Sends a DM to a user ID.", - examples: [";senddm 278305350804045834 This is a DM."], + description: 'Sends a DM to a user ID.', + examples: [';senddm 278305350804045834 This is a DM.'], args: [{ key: 'userid', prompt: 'What is the User ID of the user you wish to contact?', @@ -20,7 +20,7 @@ module.exports = class SendDMCommand extends commando.Command { if (userID.length === 18) { return true; } - return "Invalid ID."; + return 'Invalid ID.'; } }, { key: 'content', diff --git a/commands/util/servers.js b/commands/util/servers.js index 34b5e932..71887041 100644 --- a/commands/util/servers.js +++ b/commands/util/servers.js @@ -9,8 +9,8 @@ module.exports = class ServersCommand extends commando.Command { ], group: 'util', memberName: 'servers', - description: "Sends a list of all server names and IDs to the log.", - examples: [";servers"] + description: 'Sends a list of all server names and IDs to the log.', + examples: [';servers'] }); } hasPermission(msg) { @@ -23,8 +23,8 @@ module.exports = class ServersCommand extends commando.Command { } console.log(`[Command] ${message.content}`); const guildCount = this.client.guilds.size; - const guildNames = this.client.guilds.map(g => `${g.name} (${g.id})`).join(", "); + const guildNames = this.client.guilds.map(g => `${g.name} (${g.id})`).join(', '); console.log(`${guildCount} Servers: ${guildNames}`); - return message.say("Sent the information to the console!"); + return message.say('Sent the information to the console!'); } }; diff --git a/html/carbondesc.html b/html/carbondesc.html index f4d20c50..80f2662a 100644 --- a/html/carbondesc.html +++ b/html/carbondesc.html @@ -32,7 +32,6 @@
  • opusscript
  • morse
  • cheerio
  • -
  • Sherlock
  • APIs

    APIs