This for That, Uppercase, Lowercase

This commit is contained in:
Daniel Odendahl Jr
2018-08-29 22:24:15 +00:00
parent 86a11c39f1
commit 0695c3f309
5 changed files with 77 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
const Command = require('../../structures/Command');
module.exports = class LowercaseCommand extends Command {
constructor(client) {
super(client, {
name: 'lowercase',
aliases: ['to-lowercase'],
group: 'text-edit',
memberName: 'lowercase',
description: 'Converts text to lowercase.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to lowercase?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(text.toLowerCase());
}
};