From 02417eed0e86914347a84775c841a8243a1ad3ee Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Tue, 18 Sep 2018 15:44:35 +0200 Subject: [PATCH] Renamed despacito to dank and despacito send despacito --- commands/fun/dank.js | 18 ++++++++++++++++++ commands/fun/despacito.js | 9 +++++---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 commands/fun/dank.js diff --git a/commands/fun/dank.js b/commands/fun/dank.js new file mode 100644 index 00000000..4e05ee0d --- /dev/null +++ b/commands/fun/dank.js @@ -0,0 +1,18 @@ +const { Command } = require('discord.js-commando'); +const responseObject = require("../../randVid.json"); +module.exports = class dankCommand extends Command { + constructor(client) { + super(client, { + name: 'dank', + group: 'fun', + memberName: 'dank', + description: `send some random dank vid (yea sorry for that name). There is currently **${Object.keys(responseObject).length}** vid`, + }); + } + + async run(message) { + const number = Object.keys(responseObject).length; + const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; + message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`); + } +}; \ No newline at end of file diff --git a/commands/fun/despacito.js b/commands/fun/despacito.js index 7514ecdc..8d9f3774 100644 --- a/commands/fun/despacito.js +++ b/commands/fun/despacito.js @@ -6,13 +6,14 @@ module.exports = class DespacitoCommand extends Command { name: 'despacito', group: 'fun', memberName: 'despacito', - description: `despacito, what where you excepting? There is currently **${Object.keys(responseObject).length}** vid`, + description: `despacito`, }); } async run(message) { - const number = Object.keys(responseObject).length; - const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; - message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`); + message.say("DES\nPA\nCITO"); + message.say("https://images-eu.ssl-images-amazon.com/images/I/619fzjO1rmL._SS500.jpg"); + message.say("https://cdn.dopl3r.com/memes_files/despacito-eS6Lm.jpg"); + message.say("https://www.youtube.com/watch?v=kJQP7kiw5Fk"); } }; \ No newline at end of file