mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
31 lines
781 B
JavaScript
31 lines
781 B
JavaScript
const Command = require('../../structures/Command');
|
|
const { randomFromImgurAlbum } = require('../../util/Util');
|
|
|
|
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'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
async run(msg, { user }) {
|
|
try {
|
|
const gif = await randomFromImgurAlbum('SZGLX');
|
|
return msg.say(`_**${msg.author.username}** tackles **${user.username}**._`, { files: [gif] });
|
|
} catch (err) {
|
|
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
|
}
|
|
}
|
|
};
|