Nicer args parse

This commit is contained in:
Daniel Odendahl Jr
2017-04-23 23:27:03 +00:00
parent 678d3d3ae8
commit 11a610ab5e
28 changed files with 37 additions and 95 deletions
+2 -4
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const translator = require('custom-translate');
const { letterTrans } = require('custom-translate');
const dictionary = require('./udmappings.json');
module.exports = class UpsideDownCommand extends Command {
@@ -17,9 +17,7 @@ module.exports = class UpsideDownCommand extends Command {
key: 'text',
prompt: 'What text would you like to flip upside-down?',
type: 'string',
parse: text => {
return translator.letterTrans(text, dictionary);
}
parse: text => letterTrans(text, dictionary)
}]
});
}