fixed emotesay

This commit is contained in:
loicbersier 2018-10-05 11:37:05 +02:00
parent d229f0b088
commit 72b8425ea4

View file

@ -19,10 +19,9 @@ module.exports = class emoteSayCommand extends Command {
async run(message, { text }) { async run(message, { text }) {
message.delete(); message.delete();
text.toLowerCase().split('')
let emojiArray = []; let emojiArray = [];
for (let i = 0; i < text.length; i++) for (let i = 0; i < text.length; i++)
emojiArray[i] = emojiCharacters[text[i]]; emojiArray[i] = emojiCharacters[text.toLowerCase().split('')[i]];
message.say(emojiArray.join("")) message.say(emojiArray.join(""))