clap 👏 command

This commit is contained in:
Daniel Odendahl Jr
2017-09-12 19:18:06 +00:00
parent 61a4372d12
commit 2311fbb7b2
2 changed files with 30 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
const Command = require('../../structures/Command');
module.exports = class ClapCommand extends Command {
constructor(client) {
super(client, {
name: 'clap',
aliases: ['clapping'],
group: 'text-edit',
memberName: 'clap',
description: 'Sends 👏 text 👏 like 👏 this.',
args: [
{
key: 'text',
prompt: 'What 👏 text 👏 would 👏 you 👏 like 👏 to 👏 convert?',
type: 'string',
validate: text => {
if (text.split(' ').join(' 👏 ').length < 2000) return true;
return 'Your text is too long.';
}
}
]
});
}
run(msg, args) {
const { text } = args;
return msg.say(text.split(' ').join(' 👏 '));
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "38.4.4",
"version": "38.5.0",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {