From 452a267dc03c7c649bd326139ca9a030092a1a15 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 20 Apr 2017 22:13:27 +0000 Subject: [PATCH] Seperate Arrays from Commands --- commands/games/mathgame.js | 4 +- commands/games/rockpaperscissors.js | 4 +- commands/games/sentences.json | 6 + commands/games/slots.js | 2 +- commands/games/typinggame.js | 4 +- commands/imageedit/meme.js | 7 +- commands/imageedit/memecodes.json | 97 ++++++++++++ commands/random/spam.js | 2 +- commands/randomimg/cat.js | 6 +- commands/randomimg/cats.json | 22 +++ commands/randomimg/potato.js | 6 +- commands/randomimg/potatoes.json | 11 ++ commands/randomimg/pun.js | 6 +- commands/randomimg/puns.json | 55 +++++++ commands/randomimg/songs.json | 43 ++++++ commands/randomimg/vocaloid.js | 4 +- commands/randomimg/xiaopai.js | 6 +- commands/randomimg/xiaos.json | 23 +++ commands/response/8ball.js | 4 +- commands/response/8ballanswers.json | 22 +++ commands/response/choose.js | 6 +- commands/response/coin.js | 4 +- commands/response/compliment.js | 4 +- commands/response/compliments.json | 104 +++++++++++++ commands/response/factcore.js | 4 +- commands/response/facts.json | 101 +++++++++++++ commands/response/fishy.js | 5 +- commands/response/fortune.js | 4 +- commands/response/fortunes.json | 32 ++++ commands/response/name.js | 10 +- commands/response/names.json | 221 ++++++++++++++++++++++++++++ commands/response/offspring.js | 4 +- commands/response/quantumcoin.js | 4 +- commands/response/roast.js | 4 +- commands/response/roasts.json | 36 +++++ commands/util/invite.js | 5 +- package.json | 2 +- 37 files changed, 828 insertions(+), 56 deletions(-) create mode 100644 commands/games/sentences.json create mode 100644 commands/imageedit/memecodes.json create mode 100644 commands/randomimg/cats.json create mode 100644 commands/randomimg/potatoes.json create mode 100644 commands/randomimg/puns.json create mode 100644 commands/randomimg/songs.json create mode 100644 commands/randomimg/xiaos.json create mode 100644 commands/response/8ballanswers.json create mode 100644 commands/response/compliments.json create mode 100644 commands/response/facts.json create mode 100644 commands/response/fortunes.json create mode 100644 commands/response/names.json create mode 100644 commands/response/roasts.json diff --git a/commands/games/mathgame.js b/commands/games/mathgame.js index f9f9be8b..685a0d57 100644 --- a/commands/games/mathgame.js +++ b/commands/games/mathgame.js @@ -1,6 +1,7 @@ const { Command } = require('discord.js-commando'); const { RichEmbed } = require('discord.js'); const math = require('mathjs'); +const operations = ['+', '-', '*']; module.exports = class MathGameCommand extends Command { constructor(client) { @@ -33,8 +34,7 @@ module.exports = class MathGameCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!'); } const { difficulty } = args; - let operation = ['+', '-', '*']; - operation = operation[Math.floor(Math.random() * operation.length)]; + const operation = operations[Math.floor(Math.random() * operations.length)]; let value; switch (difficulty) { case 'easy': diff --git a/commands/games/rockpaperscissors.js b/commands/games/rockpaperscissors.js index dfe13c53..e81ca668 100644 --- a/commands/games/rockpaperscissors.js +++ b/commands/games/rockpaperscissors.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const responses = ['Paper', 'Rock', 'Scissors']; module.exports = class RockPaperScissorsCommand extends Command { constructor(client) { @@ -33,8 +34,7 @@ module.exports = class RockPaperScissorsCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } const { choice } = args; - let response = ['Paper', 'Rock', 'Scissors']; - response = response[Math.floor(Math.random() * response.length)]; + const response = responses[Math.floor(Math.random() * responses.length)]; if (choice === 'rock') { if (response === 'Rock') return message.say('Rock! Aw, it\'s a tie!'); if (response === 'Paper') return message.say('Paper! Yes! I win!'); diff --git a/commands/games/sentences.json b/commands/games/sentences.json new file mode 100644 index 00000000..83d94744 --- /dev/null +++ b/commands/games/sentences.json @@ -0,0 +1,6 @@ +[ + "The quick brown fox jumps over the lazy dog.", + "Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.", + "How razorback-jumping frogs can level six piqued gymnasts!", + "Amazingly few discotheques provide jukeboxes." +] diff --git a/commands/games/slots.js b/commands/games/slots.js index 1ad59786..7c7d7095 100644 --- a/commands/games/slots.js +++ b/commands/games/slots.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const slotThing = [':grapes:', ':tangerine:', ':pear:', ':cherries:']; module.exports = class SlotsCommand extends Command { constructor(client) { @@ -15,7 +16,6 @@ module.exports = class SlotsCommand extends Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - const slotThing = [':grapes:', ':tangerine:', ':pear:', ':cherries:']; const slotOne = slotThing[Math.floor(Math.random() * slotThing.length)]; const slotTwo = slotThing[Math.floor(Math.random() * slotThing.length)]; const slotThree = slotThing[Math.floor(Math.random() * slotThing.length)]; diff --git a/commands/games/typinggame.js b/commands/games/typinggame.js index 78557d72..2db4ea88 100644 --- a/commands/games/typinggame.js +++ b/commands/games/typinggame.js @@ -1,5 +1,6 @@ const { Command } = require('discord.js-commando'); const { RichEmbed } = require('discord.js'); +const sentences = require('./sentences.json'); module.exports = class TypingGameCommand extends Command { constructor(client) { @@ -32,8 +33,7 @@ module.exports = class TypingGameCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!'); } const { difficulty } = args; - let sentence = ['The quick brown fox jumps over the lazy dog.', 'Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.', 'How razorback-jumping frogs can level six piqued gymnasts!', 'Amazingly few discotheques provide jukeboxes.']; - sentence = sentence[Math.floor(Math.random() * sentence.length)]; + const sentence = sentences[Math.floor(Math.random() * sentences.length)]; let time; let levelWord; switch (difficulty) { diff --git a/commands/imageedit/meme.js b/commands/imageedit/meme.js index 8f4b3e50..8c5cf41e 100644 --- a/commands/imageedit/meme.js +++ b/commands/imageedit/meme.js @@ -1,5 +1,5 @@ const { Command } = require('discord.js-commando'); -const memecodes = ['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']; +const memecodes = require('./memecodes.json'); module.exports = class MemeCommand extends Command { constructor(client) { @@ -11,8 +11,7 @@ module.exports = class MemeCommand extends Command { group: 'imageedit', memberName: 'meme', description: 'Sends a Meme with text of your choice, and a background of your choice. (x;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: ['x;meme facepalm "I can\'t even" "comprehend this"'], + details: `**Codes:** ${memecodes.join(', ')}`, args: [{ key: 'type', prompt: 'What meme type do you want to use?', @@ -63,6 +62,6 @@ module.exports = class MemeCommand extends Command { } const { type, toprow, bottomrow } = args; const link = `https://memegen.link/${type}/${toprow}/${bottomrow}.jpg`; - return message.channel.send({file: link}).catch(() => message.say(':x: Error! Something went wrong!')); + return message.channel.send({files: [link]}).catch(() => message.say(':x: Error! Something went wrong!')); } }; diff --git a/commands/imageedit/memecodes.json b/commands/imageedit/memecodes.json new file mode 100644 index 00000000..88fd8e4b --- /dev/null +++ b/commands/imageedit/memecodes.json @@ -0,0 +1,97 @@ +[ + "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" +] diff --git a/commands/random/spam.js b/commands/random/spam.js index 93ba238b..db2f4fba 100644 --- a/commands/random/spam.js +++ b/commands/random/spam.js @@ -16,6 +16,6 @@ module.exports = class SpamCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!'); } - return message.channel.send({file: './images/Spam.jpg'}); + return message.channel.send({files: ['./images/Spam.jpg']}); } }; diff --git a/commands/randomimg/cat.js b/commands/randomimg/cat.js index 9588594d..5c4528de 100644 --- a/commands/randomimg/cat.js +++ b/commands/randomimg/cat.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const cats = require('./cats.json'); module.exports = class CatCommand extends Command { constructor(client) { @@ -16,8 +17,7 @@ module.exports = class CatCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!'); } - 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.send({file: `./images/Cat${cat}`}); + const cat = cats[Math.floor(Math.random() * cats.length)]; + return message.channel.send({files: [`./images/Cat${cat}`]}); } }; diff --git a/commands/randomimg/cats.json b/commands/randomimg/cats.json new file mode 100644 index 00000000..5afcd367 --- /dev/null +++ b/commands/randomimg/cats.json @@ -0,0 +1,22 @@ +[ + "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" +] diff --git a/commands/randomimg/potato.js b/commands/randomimg/potato.js index 8bbfef0e..b4be8f95 100644 --- a/commands/randomimg/potato.js +++ b/commands/randomimg/potato.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const potatoes = require('./potatoes.json'); module.exports = class PotatoCommand extends Command { constructor(client) { @@ -19,8 +20,7 @@ module.exports = class PotatoCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!'); } - 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.send({file: `./images/Potato${potato}`}); + const potato = potatoes[Math.floor(Math.random() * potatoes.length)]; + return message.channel.send({files: [`./images/Potato${potato}`]}); } }; diff --git a/commands/randomimg/potatoes.json b/commands/randomimg/potatoes.json new file mode 100644 index 00000000..ec8bc5bc --- /dev/null +++ b/commands/randomimg/potatoes.json @@ -0,0 +1,11 @@ +[ + "1.jpg", + "2.jpg", + "3.jpg", + "4.jpg", + "5.gif", + "6.png", + "7.jpg", + "8.jpg", + "9.jpg" +] diff --git a/commands/randomimg/pun.js b/commands/randomimg/pun.js index 20e580db..280ede8f 100644 --- a/commands/randomimg/pun.js +++ b/commands/randomimg/pun.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const puns = require('./puns.json'); module.exports = class RandomPunCommand extends Command { constructor(client) { @@ -16,8 +17,7 @@ module.exports = class RandomPunCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!'); } - 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.send({file: `./images/Pun${pun}`}); + const pun = puns[Math.floor(Math.random() * puns.length)]; + return message.channel.send({files: [`./images/Pun${pun}`]}); } }; diff --git a/commands/randomimg/puns.json b/commands/randomimg/puns.json new file mode 100644 index 00000000..d3da522a --- /dev/null +++ b/commands/randomimg/puns.json @@ -0,0 +1,55 @@ +[ + "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" +] diff --git a/commands/randomimg/songs.json b/commands/randomimg/songs.json new file mode 100644 index 00000000..d6bb9ea1 --- /dev/null +++ b/commands/randomimg/songs.json @@ -0,0 +1,43 @@ +[ + "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" +] diff --git a/commands/randomimg/vocaloid.js b/commands/randomimg/vocaloid.js index 2e8f8d30..a67820ae 100644 --- a/commands/randomimg/vocaloid.js +++ b/commands/randomimg/vocaloid.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const songs = require('./songs.json'); module.exports = class VocaloidCommand extends Command { constructor(client) { @@ -18,8 +19,7 @@ module.exports = class VocaloidCommand extends Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - let song = ['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']; - song = song[Math.floor(Math.random() * song.length)]; + const song = songs[Math.floor(Math.random() * songs.length)]; return message.say(song); } }; diff --git a/commands/randomimg/xiaopai.js b/commands/randomimg/xiaopai.js index eb31f032..265f2d48 100644 --- a/commands/randomimg/xiaopai.js +++ b/commands/randomimg/xiaopai.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const xiaos = require('./xiaos.json'); module.exports = class XiaoCommand extends Command { constructor(client) { @@ -19,8 +20,7 @@ module.exports = class XiaoCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!'); } - let xiao = ['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']; - xiao = xiao[Math.floor(Math.random() * xiao.length)]; - return message.channel.send({file: `./images/Xiao${xiao}`}); + const xiao = xiaos[Math.floor(Math.random() * xiaos.length)]; + return message.channel.send({files: [`./images/Xiao${xiao}`]}); } }; diff --git a/commands/randomimg/xiaos.json b/commands/randomimg/xiaos.json new file mode 100644 index 00000000..c1d598bd --- /dev/null +++ b/commands/randomimg/xiaos.json @@ -0,0 +1,23 @@ +[ + "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" +] diff --git a/commands/response/8ball.js b/commands/response/8ball.js index a99012dd..e57f6f76 100644 --- a/commands/response/8ball.js +++ b/commands/response/8ball.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const answers = require('./8ballanswers.json'); module.exports = class MagicBallCommand extends Command { constructor(client) { @@ -21,8 +22,7 @@ module.exports = class MagicBallCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } const { question } = args; - let answer = ['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']; - answer = answer[Math.floor(Math.random() * answer.length)]; + const answer = answers[Math.floor(Math.random() * answers.length)]; return message.say(`Question: ${question}\n:8ball: ${answer} :8ball:`); } }; diff --git a/commands/response/8ballanswers.json b/commands/response/8ballanswers.json new file mode 100644 index 00000000..f5f1df62 --- /dev/null +++ b/commands/response/8ballanswers.json @@ -0,0 +1,22 @@ +[ + "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" +] diff --git a/commands/response/choose.js b/commands/response/choose.js index fe10455f..220b0060 100644 --- a/commands/response/choose.js +++ b/commands/response/choose.js @@ -24,8 +24,8 @@ module.exports = class ChooseCommand extends Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - let { choices } = args; - choices = choices[Math.floor(Math.random() * choices.length)]; - return message.say(`I choose ${choices}!`); + const { choices } = args; + const choice = choices[Math.floor(Math.random() * choices.length)]; + return message.say(`I choose ${choice}!`); } }; diff --git a/commands/response/coin.js b/commands/response/coin.js index 09a27af3..4c332b8a 100644 --- a/commands/response/coin.js +++ b/commands/response/coin.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const sides = ['heads', 'tails']; module.exports = class CoinFlipCommand extends Command { constructor(client) { @@ -19,8 +20,7 @@ module.exports = class CoinFlipCommand extends Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - let coin = ['heads', 'tails']; - coin = coin[Math.floor(Math.random() * coin.length)]; + const coin = sides[Math.floor(Math.random() * sides.length)]; return message.say(`It landed on ${coin}!`); } }; diff --git a/commands/response/compliment.js b/commands/response/compliment.js index a3613109..d3f53671 100644 --- a/commands/response/compliment.js +++ b/commands/response/compliment.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const compliments = require('./compliments.json'); module.exports = class ComplimentCommand extends Command { constructor(client) { @@ -21,8 +22,7 @@ module.exports = class ComplimentCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } const { thing } = args; - let compliment = ['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.']; - compliment = compliment[Math.floor(Math.random() * compliment.length)]; + const compliment = compliments[Math.floor(Math.random() * compliments.length)]; return message.say(`${thing}, ${compliment}`); } }; diff --git a/commands/response/compliments.json b/commands/response/compliments.json new file mode 100644 index 00000000..ece67ca0 --- /dev/null +++ b/commands/response/compliments.json @@ -0,0 +1,104 @@ +[ + "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." +] diff --git a/commands/response/factcore.js b/commands/response/factcore.js index b61fdadb..8588e354 100644 --- a/commands/response/factcore.js +++ b/commands/response/factcore.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const facts = require('./facts.json'); module.exports = class FactCoreCommand extends Command { constructor(client) { @@ -15,8 +16,7 @@ module.exports = class FactCoreCommand extends Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - let fact = ['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.']; - fact = fact[Math.floor(Math.random() * fact.length)]; + const fact = facts[Math.floor(Math.random() * facts.length)]; return message.say(fact); } }; diff --git a/commands/response/facts.json b/commands/response/facts.json new file mode 100644 index 00000000..54664193 --- /dev/null +++ b/commands/response/facts.json @@ -0,0 +1,101 @@ +[ + "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." +] diff --git a/commands/response/fishy.js b/commands/response/fishy.js index a7b68090..9ad8f8f1 100644 --- a/commands/response/fishy.js +++ b/commands/response/fishy.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const fishes = [':fish:', ':tropical_fish:', ':blowfish:']; module.exports = class FishyCommand extends Command { constructor(client) { @@ -19,8 +20,8 @@ module.exports = class FishyCommand extends Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - let fish = [':fish:', ':tropical_fish:', ':blowfish:']; - fish = fish[Math.floor(Math.random() * fish.length)]; + + const fish = fishes[Math.floor(Math.random() * fishes.length)]; return message.say(`You caught a: ${fish}`); } }; diff --git a/commands/response/fortune.js b/commands/response/fortune.js index d67a938d..f301dac7 100644 --- a/commands/response/fortune.js +++ b/commands/response/fortune.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const fortunes = require('./fortunes.json'); module.exports = class FortuneCookieCommand extends Command { constructor(client) { @@ -18,8 +19,7 @@ module.exports = class FortuneCookieCommand extends Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - let fortune = ['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.']; - fortune = fortune[Math.floor(Math.random() * fortune.length)]; + const fortune = fortunes[Math.floor(Math.random() * fortunes.length)]; return message.say(fortune); } }; diff --git a/commands/response/fortunes.json b/commands/response/fortunes.json new file mode 100644 index 00000000..abcc5c56 --- /dev/null +++ b/commands/response/fortunes.json @@ -0,0 +1,32 @@ +[ + "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." +] diff --git a/commands/response/name.js b/commands/response/name.js index 5d8b3506..58908dd3 100644 --- a/commands/response/name.js +++ b/commands/response/name.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const { lastNames, maleNames, femaleNames } = require('names.json'); module.exports = class RandomNameCommand extends Command { constructor(client) { @@ -34,15 +35,12 @@ module.exports = class RandomNameCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } const { gender } = args; - let lastName = ['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']; - lastName = lastName[Math.floor(Math.random() * lastName.length)]; + const lastName = lastNames[Math.floor(Math.random() * lastNames.length)]; if (gender === 'male') { - let name = ['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']; - name = name[Math.floor(Math.random() * name.length)]; + const name = maleNames[Math.floor(Math.random() * maleNames.length)]; return message.say(`${name} ${lastName}`); } else if (gender === 'female') { - let name = ['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']; - name = name[Math.floor(Math.random() * name.length)]; + const name = femaleNames[Math.floor(Math.random() * femaleNames.length)]; return message.say(`${name} ${lastName}`); } } diff --git a/commands/response/names.json b/commands/response/names.json new file mode 100644 index 00000000..31f25cb6 --- /dev/null +++ b/commands/response/names.json @@ -0,0 +1,221 @@ +{ + lastNames: [ + "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" + ], + maleNames: [ + "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" + ], + femaleNames: [ + "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" + ] +} \ No newline at end of file diff --git a/commands/response/offspring.js b/commands/response/offspring.js index cf1a5bb9..770baa08 100644 --- a/commands/response/offspring.js +++ b/commands/response/offspring.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const genders = ['boy', 'girl']; module.exports = class OffspringCommand extends Command { constructor(client) { @@ -19,8 +20,7 @@ module.exports = class OffspringCommand extends Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - let gender = ['boy', 'girl']; - gender = gender[Math.floor(Math.random() * gender.length)]; + const gender = genders[Math.floor(Math.random() * genders.length)]; return message.say(`It's a ${gender}!`); } }; diff --git a/commands/response/quantumcoin.js b/commands/response/quantumcoin.js index 8e9cbe05..b7ebe35f 100644 --- a/commands/response/quantumcoin.js +++ b/commands/response/quantumcoin.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const sides = ['on nothing', 'on NaN', 'on 0', 'in the air', 'on null']; module.exports = class QuantumCoinCommand extends Command { constructor(client) { @@ -20,8 +21,7 @@ module.exports = class QuantumCoinCommand extends Command { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - let qcoin = ['on nothing', 'on NaN', 'on 0', 'in the air', 'on null']; - qcoin = qcoin[Math.floor(Math.random() * qcoin.length)]; + const qcoin = sides[Math.floor(Math.random() * sides.length)]; return message.say(`It landed ${qcoin}.`); } }; diff --git a/commands/response/roast.js b/commands/response/roast.js index f32640e8..911523b4 100644 --- a/commands/response/roast.js +++ b/commands/response/roast.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const roasts = require('./roasts.json'); module.exports = class RoastCommand extends Command { constructor(client) { @@ -24,8 +25,7 @@ module.exports = class RoastCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } const { thing } = args; - let roast = ['*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.', 'Your hairline is built like a graph chart, positive and negative forces attract but the clippers and your hair repel', 'I know a good joke! You!']; - roast = roast[Math.floor(Math.random() * roast.length)]; + const roast = roasts[Math.floor(Math.random() * roasts.length)]; return message.say(`${thing}, ${roast}`); } }; diff --git a/commands/response/roasts.json b/commands/response/roasts.json new file mode 100644 index 00000000..42370abf --- /dev/null +++ b/commands/response/roasts.json @@ -0,0 +1,36 @@ +[ + "*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.", + "Your hairline is built like a graph chart, positive and negative forces attract but the clippers and your hair repel", + "I know a good joke! You!" +] diff --git a/commands/util/invite.js b/commands/util/invite.js index b2ef406d..1091fd27 100644 --- a/commands/util/invite.js +++ b/commands/util/invite.js @@ -11,10 +11,11 @@ module.exports = class InviteCommand extends Command { }); } - run(message) { + async run(message) { if (message.channel.type !== 'dm') { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } - 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'); + const invite = await this.client.generateInvite('1345846343'); + return message.say(`Add me to your server with this link:\n${invite}\nOr, come to my server with this link:\n${this.client.options.invite}`); } }; diff --git a/package.json b/package.json index b3b9c938..13be96c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "31.2.0", + "version": "31.3.0", "description": "A Discord Bot", "main": "shardingmanager.js", "scripts": {