Skip to content

Commit

Permalink
fix !chat command
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Oct 19, 2024
1 parent fc6bb55 commit 45a2d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/messenger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 45a2d58

Please sign in to comment.