removed useless thing

This commit is contained in:
loicbersier 2018-09-23 20:01:07 +02:00
parent df6d593213
commit cf4a7f9840

View file

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