From 45a2d585482fbbe4ea92eceb19c9fea121790d9d Mon Sep 17 00:00:00 2001 From: Lluis Date: Sat, 19 Oct 2024 15:18:18 +0200 Subject: [PATCH] fix !chat command --- lib/messenger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/messenger.js b/lib/messenger.js index 5e44e12..69e5a71 100644 --- a/lib/messenger.js +++ b/lib/messenger.js @@ -194,7 +194,7 @@ class Messenger { // OPEN AI if (textSplit.length > 1 && inputParser.isAskingOpenAI(textSplit[0]) && this._isNotCooldown('openai',15)) { - return handlers.openAI.askOpenAI(target, textSplit[1], context['display-name'], this.bot) + return handlers.openAI.askOpenAI(target, textSplit.slice(1).join(' '), context['display-name'], this.bot) } if (textSplit.length > 1 && inputParser.isAskingBotOpenAI(text) && this._isNotCooldown('openai',15)) {