From fb8899a2d6c120ff739f83a18181302b1d1cfd1b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 3 Apr 2021 20:06:45 -0400 Subject: [PATCH] Make animalese sound better --- commands/voice/animalese.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/voice/animalese.js b/commands/voice/animalese.js index 73cec8cf..757c955b 100644 --- a/commands/voice/animalese.js +++ b/commands/voice/animalese.js @@ -107,6 +107,6 @@ module.exports = class AnimaleseCommand extends Command { } processScript(str) { - return str.replace(/[^a-z]/gi, ' ').split(' ').join(''); + return str.replace(/[^a-z]/gi, ' ').trim(); } };