Skip to content

Commit

Permalink
fix(llama): filter Llama:
Browse files Browse the repository at this point in the history
  • Loading branch information
sdip15fa committed Feb 14, 2024
1 parent c02a9c7 commit fcc43e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commands/llama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fcc43e0

Please sign in to comment.