More modifications
This commit is contained in:
@@ -117,7 +117,7 @@ async Task OnMessage(Message msg, Agent agent) {
|
||||
Message: {msg.Text}
|
||||
""");
|
||||
//Add the message to the chat history
|
||||
oaiAgent.ChatHistoryAppend(Actor.User, chatid, text);
|
||||
oaiAgent.ChatHistoryAppend(agent.Actor, chatid, text);
|
||||
|
||||
|
||||
//Check if the message contains the bot's username or a reply to a message sent by the bot or a private chat
|
||||
|
||||
Reference in New Issue
Block a user