cardboardbox/commands/Fun/initial.js

22 lines
558 B
JavaScript
Raw Normal View History

2019-12-23 03:22:04 +00:00
exports.run = async (client, message, args, level) => {
if (!args[0]) {
message.delete();
return (await message.reply("you must input some text to be transformed.")).delete(5000);
}
message.delete();
message.channel.send(args.map(arg => arg[0].toUpperCase() + arg.slice(1).toLowerCase()).join(' '));
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: "User"
};
exports.help = {
name: "initial",
category: "Fun",
description: "Transforms the text you insert into Initial Caps.",
usage: "initial <text>"
};