Files
xiao/commands/roleplay/eat.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/O7FQ5kz.gif',
'https://i.imgur.com/LuWHflH.gif',
'https://i.imgur.com/t87M9T9.gif',
'https://i.imgur.com/W5qKOiU.gif',
'https://i.imgur.com/vFQvAMk.gif'
];
module.exports = class EatCommand extends Command {
constructor(client) {
super(client, {
name: 'eat',
group: 'roleplay',
memberName: 'eat',
description: 'Eats 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}** *eats* **${user.username}**
${gifs[Math.floor(Math.random() * gifs.length)]}
`);
}
};