master
Skye 2 years ago
parent e5d85879b9
commit 3511feec73
Signed by: me
GPG Key ID: 0104BC05F41B77B8

@ -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…
Cancel
Save