Files
xiao/commands/text-edit/b.js
T
Daniel Odendahl Jr c12b736590 Use direct unicode
2017-09-08 01:28:33 +00:00

30 lines
629 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class BCommand extends Command {
constructor(client) {
super(client, {
name: 'b',
aliases: ['🅱'],
group: 'text-edit',
memberName: 'b',
description: '🅱.',
args: [
{
key: 'text',
prompt: 'What text would you like to 🅱?',
type: 'string',
validate: text => {
if (text.replace(/(b|d|g|p|q)/gi, '🅱').length < 2000) return true;
return 'Your text is too long.';
}
}
]
});
}
run(msg, args) {
const { text } = args;
return msg.say(text.replace(/(b|d|g|p|q)/gi, '🅱'));
}
};