From fcc43e039a7c92d2c20871f7962ae70fab87bf2a Mon Sep 17 00:00:00 2001 From: wcyat Date: Wed, 14 Feb 2024 20:43:02 +0800 Subject: [PATCH] fix(llama): filter Llama: --- commands/llama.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/llama.ts b/commands/llama.ts index 67da3b2..873439a 100644 --- a/commands/llama.ts +++ b/commands/llama.ts @@ -36,7 +36,10 @@ const execute = async (client: Client, msg: Message, args: string[]) => { currMsg.body.startsWith("Llama:") && currMsg.fromMe ? "system" : "user", - content: currMsg.body, + content: + currMsg.body.startsWith("Llama:") && currMsg.fromMe + ? currMsg.body.replace("Llama: ", "") + : currMsg.body, }); if (currMsg.hasQuotedMsg) { const nextQuotedMsg = await currMsg.getQuotedMessage();