This commit is contained in:
Daniel Odendahl Jr
2017-06-17 03:26:31 +00:00
parent 5bb78126a9
commit fd4e35533a
129 changed files with 322 additions and 319 deletions
+30
View File
@@ -0,0 +1,30 @@
const Command = require('../../structures/Command');
const zalgo = require('zalgolize');
module.exports = class ZalgoCommand extends Command {
constructor(client) {
super(client, {
name: 'zalgo',
group: 'text-edit',
memberName: 'zalgo',
description: 'Converts text to Zalgo.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to zalgo?',
type: 'string',
validate: (text) => {
if (text.length < 500) return true;
else return 'Text must be under 500 characters.';
}
}
]
});
}
run(msg, args) {
const { text } = args;
const converted = zalgo(text);
return msg.say(`\u180E${converted}`);
}
};