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
+8 -1
View File
@@ -1,5 +1,12 @@
const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
const gifs = [
'https://media.giphy.com/media/x58AS8I9DBRgA/giphy.gif',
'https://i.imgur.com/W4cEKMy.gif',
'https://i.imgur.com/r67Klvg.gif',
'https://i.imgur.com/zi7D5X2.gif',
'https://i.imgur.com/rJJWFj8.gif'
];
module.exports = class HighFivesCommand extends Command {
constructor(client) {
@@ -22,7 +29,7 @@ module.exports = class HighFivesCommand extends Command {
const { user } = args;
return msg.say(stripIndents`
**${msg.author.username}** *high-fives* **${user.username}**
https://media.giphy.com/media/x58AS8I9DBRgA/giphy.gif
${gifs[Math.floor(Math.random() * gifs.length)]}
`);
}
};