clap!
This commit is contained in:
parent
33ed9f7f7a
commit
1757e33070
1 changed files with 24 additions and 0 deletions
24
commands/Fun/clap.js
Normal file
24
commands/Fun/clap.js
Normal file
|
@ -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 <text>"
|
||||
};
|
Loading…
Reference in a new issue