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