fix: oops
This commit is contained in:
parent
e5d85879b9
commit
3511feec73
1 changed files with 3 additions and 3 deletions
6
index.ts
6
index.ts
|
@ -58,10 +58,10 @@ client.on("messageCreate", async (message) => {
|
|||
const context = [
|
||||
...msgs
|
||||
.filter((msg) => {
|
||||
if (message.webhookId) return false;
|
||||
if (message.author.bot && msg.author !== msg.author.client.user)
|
||||
if (msg.webhookId) return false;
|
||||
if (msg.author.bot && msg.author !== msg.author.client.user)
|
||||
return false;
|
||||
if (message.content.startsWith("\\")) return false;
|
||||
if (msg.content.startsWith("\\")) return false;
|
||||
return true;
|
||||
})
|
||||
.mapValues<ChatCompletionRequestMessage>((msg) => {
|
||||
|
|
Loading…
Reference in a new issue