fixing duplicate message bug

This commit is contained in:
Raven Scott 2023-04-11 16:36:15 +02:00
parent d90ceab967
commit 7d68f426d0
1 changed files with 0 additions and 4 deletions

View File

@ -121,10 +121,6 @@ client.on('messageCreate', async (message) => {
role: 'assistant',
content: `Hello, ${message.author.username}, I am here to answer any question you have, how may I help you?`
});
conversation.messages.push({
role: 'user',
content: message.cleanContent
});
} else {
// Append user message to conversation history