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)) {