fixing duplicate message bug
This commit is contained in:
parent
d90ceab967
commit
7d68f426d0
@ -121,10 +121,6 @@ client.on('messageCreate', async (message) => {
|
|||||||
role: 'assistant',
|
role: 'assistant',
|
||||||
content: `Hello, ${message.author.username}, I am here to answer any question you have, how may I help you?`
|
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 {
|
} else {
|
||||||
// Append user message to conversation history
|
// Append user message to conversation history
|
||||||
|
Loading…
Reference in New Issue
Block a user