Alphabet Reverse

This commit is contained in:
Daniel Odendahl Jr
2017-09-23 03:22:11 +00:00
parent 66996b29e7
commit c764d5cb85
3 changed files with 91 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
const Command = require('../../structures/Command');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/alphabet-reverse');
module.exports = class AlphabetReverseCommand extends Command {
constructor(client) {
super(client, {
name: 'alphabet-reverse',
aliases: ['reverse-alphabet', 'tebahpla'],
group: 'text-edit',
memberName: 'alphabet-reverse',
description: 'Reverses the alphabet of text.',
args: [
{
key: 'text',
prompt: 'What text would you like to reverse the alphabet of?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(letterTrans(text, dictionary));
}
};