Files
xiao/commands/random/slowclap.js
T
2017-04-20 13:48:12 +00:00

21 lines
616 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class SlowClapCommand extends Command {
constructor(client) {
super(client, {
name: 'slowclap',
group: 'random',
memberName: 'slowclap',
description: '*Slow Clap*. (x;slowclap)',
examples: ['x;slowclap']
});
}
run(message) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
return message.say('*slow clap*');
}
};