Files
xiao/commands/roleplay/cuddle.js
T
Daniel Odendahl Jr 1c9ac56831 Change arg assignment
2017-09-16 01:44:44 +00:00

35 lines
805 B
JavaScript

const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
const gifs = [
'https://i.imgur.com/mpi3pwu.gif',
'https://i.imgur.com/0yAIWbg.gif',
'https://i.imgur.com/xQPBSIs.gif',
'https://i.imgur.com/O4K8Bj4.gif',
'https://i.imgur.com/eBWR5vJ.gif'
];
module.exports = class CuddleCommand extends Command {
constructor(client) {
super(client, {
name: 'cuddle',
group: 'roleplay',
memberName: 'cuddle',
description: 'Cuddles 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}** *cuddles* **${user.username}**
${gifs[Math.floor(Math.random() * gifs.length)]}
`);
}
};