Files
xiao/commands/roleplay/slap.js
T
Daniel Odendahl Jr 3bb21c2df0 Cleaner Looking args
2017-05-02 17:54:07 +00:00

25 lines
642 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class SlapCommand extends Command {
constructor(client) {
super(client, {
name: 'slap',
group: 'roleplay',
memberName: 'slap',
description: 'Slaps something/someone.',
args: [
{
key: 'thing',
prompt: 'What do you want to roleplay with?',
type: 'string'
}
]
});
}
run(msg, args) {
const { thing } = args;
return msg.say(`${msg.author} *slaps* ${thing}`);
}
};