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": {