forked from Supositware/Haha-Yes
fixed emotesay
This commit is contained in:
parent
d229f0b088
commit
72b8425ea4
1 changed files with 1 additions and 2 deletions
|
@ -19,10 +19,9 @@ module.exports = class emoteSayCommand extends Command {
|
|||
|
||||
async run(message, { text }) {
|
||||
message.delete();
|
||||
text.toLowerCase().split('')
|
||||
let emojiArray = [];
|
||||
for (let i = 0; i < text.length; i++)
|
||||
emojiArray[i] = emojiCharacters[text[i]];
|
||||
emojiArray[i] = emojiCharacters[text.toLowerCase().split('')[i]];
|
||||
message.say(emojiArray.join(""))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue