eslint config aqua

This commit is contained in:
Daniel Odendahl Jr
2017-07-27 21:00:54 +00:00
parent 93fd5f6caa
commit 53e1d6a8ff
176 changed files with 6713 additions and 7642 deletions
+24 -24
View File
@@ -3,29 +3,29 @@ const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/morse');
module.exports = class MorseCommand extends Command {
constructor(client) {
super(client, {
name: 'morse',
group: 'text-edit',
memberName: 'morse',
description: 'Converts text to morse code.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to morse?',
type: 'string',
validate: (text) => {
if (letterTrans(text, dictionary, ' ').length < 1999) return true;
else return 'Your text is too long.';
}
}
]
});
}
constructor(client) {
super(client, {
name: 'morse',
group: 'text-edit',
memberName: 'morse',
description: 'Converts text to morse code.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to morse?',
type: 'string',
validate: text => {
if (letterTrans(text, dictionary, ' ').length < 1999) return true;
return 'Your text is too long.';
}
}
]
});
}
run(msg, args) {
const { text } = args;
const converted = letterTrans(text.toLowerCase(), dictionary, ' ');
return msg.say(converted);
}
run(msg, args) {
const { text } = args;
const converted = letterTrans(text.toLowerCase(), dictionary, ' ');
return msg.say(converted);
}
};