From 2311fbb7b2a0d93f7644f3fba092e905a4f1296f Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 12 Sep 2017 19:18:06 +0000 Subject: [PATCH] =?UTF-8?q?clap=20=F0=9F=91=8F=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/text-edit/clap.js | 29 +++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 commands/text-edit/clap.js diff --git a/commands/text-edit/clap.js b/commands/text-edit/clap.js new file mode 100644 index 00000000..d5cdb1c6 --- /dev/null +++ b/commands/text-edit/clap.js @@ -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(' 👏 ')); + } +}; diff --git a/package.json b/package.json index db48a827..311a09d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "38.4.4", + "version": "38.5.0", "description": "Your personal server companion.", "main": "Shard.js", "scripts": {