From cf4a7f98401a973f3622a3a8959ac9f37dbc2625 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 23 Sep 2018 20:01:07 +0200 Subject: [PATCH] removed useless thing --- commands/fun/emotesay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/fun/emotesay.js b/commands/fun/emotesay.js index 941b714..f06cbff 100644 --- a/commands/fun/emotesay.js +++ b/commands/fun/emotesay.js @@ -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(""))