removed useless line

This commit is contained in:
loicbersier 2018-09-23 19:33:53 +02:00
parent 9a410110b3
commit df6d593213

View file

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