5 New Commands

This commit is contained in:
Daniel Odendahl Jr
2017-09-23 20:02:01 +00:00
parent a99ae3945e
commit 1691870d2b
6 changed files with 195 additions and 1 deletions
+35
View File
@@ -0,0 +1,35 @@
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)]}
`);
}
};