mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Better Emojify
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = class EmojifyCommand extends Command {
|
||||
prompt: 'What text would you like to convert to emoji?',
|
||||
type: 'string',
|
||||
validate: text => {
|
||||
if (letterTrans(text.toLowerCase(), dictionary).length < 2000) return true;
|
||||
if (letterTrans(text.toLowerCase(), dictionary, ' ').length < 2000) return true;
|
||||
return 'Your text is too long.';
|
||||
},
|
||||
parse: text => text.toLowerCase()
|
||||
@@ -27,6 +27,6 @@ module.exports = class EmojifyCommand extends Command {
|
||||
|
||||
run(msg, args) {
|
||||
const { text } = args;
|
||||
return msg.say(letterTrans(text, dictionary));
|
||||
return msg.say(letterTrans(text, dictionary, ' '));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user