Use direct unicode

This commit is contained in:
Daniel Odendahl Jr
2017-09-08 01:28:33 +00:00
parent 612cb39747
commit c12b736590
14 changed files with 25 additions and 29 deletions
+4 -4
View File
@@ -7,14 +7,14 @@ module.exports = class BCommand extends Command {
aliases: ['🅱'],
group: 'text-edit',
memberName: 'b',
description: ':b:.',
description: '🅱.',
args: [
{
key: 'text',
prompt: 'What text would you like to :b:?',
prompt: 'What text would you like to 🅱?',
type: 'string',
validate: text => {
if (text.replace(/(b|d|g|p|q)/gi, ':b:').length < 2000) return true;
if (text.replace(/(b|d|g|p|q)/gi, '🅱').length < 2000) return true;
return 'Your text is too long.';
}
}
@@ -24,6 +24,6 @@ module.exports = class BCommand extends Command {
run(msg, args) {
const { text } = args;
return msg.say(text.replace(/(b|d|g|p|q)/gi, ':b:'));
return msg.say(text.replace(/(b|d|g|p|q)/gi, '🅱'));
}
};