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

35 lines
790 B
JavaScript

const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
const gifs = [
'https://i.imgur.com/oynHZmT.gif',
'https://i.imgur.com/qcZiv4W.gif',
'https://i.imgur.com/aAvI3Cq.gif',
'https://i.imgur.com/DJ6iTRW.gif',
'https://i.imgur.com/whDGqSu.gif'
];
module.exports = class PatCommand extends Command {
constructor(client) {
super(client, {
name: 'pat',
group: 'roleplay',
memberName: 'pat',
description: 'Pats 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}** *pats* **${user.username}**
${gifs[Math.floor(Math.random() * gifs.length)]}
`);
}
};