const randomizeCase = word => word.split('').map(c => Math.random() > 0.5 ? c.toUpperCase() : c.toLowerCase()).join(''); exports.run = (bot, msg, args) => { if (args.length < 1) { throw 'Please provide some text to clapify'; } msg.edit(args.map(randomizeCase).join(':clap:')); }; exports.info = { name: 'clap', usage: 'clap ', description: 'Clapifies your text' };