Fix Everything

This commit is contained in:
Daniel Odendahl Jr
2017-06-01 18:31:20 +00:00
parent 66706d9c7b
commit 4e1f83a30f
85 changed files with 721 additions and 851 deletions
+5 -8
View File
@@ -14,13 +14,9 @@ module.exports = class ZalgoCommand extends Command {
prompt: 'What text would you like to convert to zalgo?',
type: 'string',
validate: (text) => {
if (text.length < 500) {
return true;
} else {
return 'Invalid Text. Text must be under 500 characters.';
}
},
parse: (text) => zalgo(text)
if (text.length < 500) return true;
else return 'Invalid Text. Text must be under 500 characters.';
}
}
]
});
@@ -28,6 +24,7 @@ module.exports = class ZalgoCommand extends Command {
run(msg, args) {
const { text } = args;
return msg.say(`\u180E${text}`);
const converted = zalgo(text);
return msg.say(`\u180E${converted}`);
}
};