Random GIFs

This commit is contained in:
Daniel Odendahl Jr
2017-09-03 03:44:59 +00:00
parent 53a2eb1996
commit 5d405e4bd2
18 changed files with 150 additions and 45 deletions
+7 -1
View File
@@ -1,5 +1,11 @@
const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
const gifs = [
'https://i.imgur.com/u67QLhB.gif',
'https://i.imgur.com/k8r28dR.gif',
'https://i.imgur.com/pqXqmSB.gif',
'https://i.imgur.com/gOb9sTR.gif'
];
module.exports = class MarryCommand extends Command {
constructor(client) {
@@ -22,7 +28,7 @@ module.exports = class MarryCommand extends Command {
const { user } = args;
return msg.say(stripIndents`
**${msg.author.username}** *marries* **${user.username}**
https://i.imgur.com/u67QLhB.gif
${gifs[Math.floor(Math.random() * gifs.length)]}
`);
}
};