From 1757e330706489d3cd2b446d5a81cd4f725ab888 Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Sat, 21 Dec 2019 19:35:57 -0500 Subject: [PATCH] clap! --- commands/Fun/clap.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 commands/Fun/clap.js diff --git a/commands/Fun/clap.js b/commands/Fun/clap.js new file mode 100644 index 0000000..55bd925 --- /dev/null +++ b/commands/Fun/clap.js @@ -0,0 +1,24 @@ +const randomizeCase = word => word.split('').map(c => Math.random() > 0.5 ? c.toUpperCase() : c.toLowerCase()).join(''); + +exports.run = async (client, message, args, level) => { + if (args.length < 1) { + message.delete(); + return (await message.channel.send("Please provide some text to clapify")).delete(5000); + } + + message.channel.send(args.map(randomizeCase).join(':clap:')); +}; + +exports.conf = { + enabled: true, + guildOnly: false, + aliases: [], + permLevel: "User" +}; + +exports.help = { + name: "clap", + category: "Fun", + description: "Clap clap clap! Clapifies your text.", + usage: "clap " +}; \ No newline at end of file