From 6013713ee751d6a576ecab22ea02cc44d7c4f527 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 28 Mar 2021 22:35:02 -0400 Subject: [PATCH] Don't shorten in animalese --- commands/voice/animalese.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/commands/voice/animalese.js b/commands/voice/animalese.js index 3ad9b2dc..73cec8cf 100644 --- a/commands/voice/animalese.js +++ b/commands/voice/animalese.js @@ -106,14 +106,7 @@ module.exports = class AnimaleseCommand extends Command { return Buffer.from(wav.toBuffer()); } - shortenWord(str) { - if (str.length > 4) { - return `${str.charAt(0)}${str.charAt(1)}${str.charAt(str.length - 2)}${str.charAt(str.length - 1)}`; - } - return str; - } - processScript(str) { - return str.replace(/[^a-z]/gi, ' ').split(' ').map(this.shortenWord).join(''); + return str.replace(/[^a-z]/gi, ' ').split(' ').join(''); } };