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

35 lines
795 B
JavaScript

const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
const gifs = [
'https://i.imgur.com/rfy8z2K.gif',
'https://i.imgur.com/FsygXIT.gif',
'https://i.imgur.com/8sbR33w.gif',
'https://i.imgur.com/wsIpwcT.gif',
'https://i.imgur.com/mAV8aa7.gif'
];
module.exports = class SlapCommand extends Command {
constructor(client) {
super(client, {
name: 'slap',
group: 'roleplay',
memberName: 'slap',
description: 'Slaps 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}** *slaps* **${user.username}**
${gifs[Math.floor(Math.random() * gifs.length)]}
`);
}
};