const Command = require('../../structures/Command'); const { stripIndents } = require('common-tags'); const gifs = [ 'https://i.imgur.com/q9Wkhz4.gif', 'https://i.imgur.com/dUejMIs.gif', 'https://i.imgur.com/NsTtb7j.gif', 'https://i.imgur.com/p4CZKph.gif', 'https://i.imgur.com/1L9TaPV.gif' ]; module.exports = class HugCommand extends Command { constructor(client) { super(client, { name: 'hug', group: 'roleplay', memberName: 'hug', description: 'Hugs a user.', args: [ { key: 'user', prompt: 'What user do you want to roleplay with?', type: 'user' } ] }); } run(msg, { user }) { return msg.say(stripIndents` **${msg.author.username}** *hugs* **${user.username}** ${gifs[Math.floor(Math.random() * gifs.length)]} `); } };