Files
xiao/commands/roleplay/tackle.js
T
Daniel Odendahl Jr 1691870d2b 5 New Commands
2017-09-23 20:02:01 +00:00

36 lines
842 B
JavaScript

const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
const gifs = [
'https://i.imgur.com/wXShFlF.gif',
'https://i.imgur.com/bpBz27N.gif',
'https://i.imgur.com/61vX6F6.gif',
'https://i.imgur.com/6zv7HP5.gif',
'https://i.imgur.com/ExYfGm8.gif'
];
module.exports = class TackleCommand extends Command {
constructor(client) {
super(client, {
name: 'tackle',
aliases: ['glomp', 'tackle-hug'],
group: 'roleplay',
memberName: 'tackle',
description: 'Tackles 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}** *tackles* **${user.username}**
${gifs[Math.floor(Math.random() * gifs.length)]}
`);
}
};