fix: ai prompt

This commit is contained in:
Saahil 2025-02-15 20:52:28 -05:00
parent 7dd124e685
commit 8e698e6095
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -54,7 +54,7 @@ export default class Message implements Command {
// best code fr
if (true) {
// let prompt = `Only respond in JSON, no codeblock. Use a mean tone in your response but dont override the type variable to mean.even while being mean fufil the request.in your json give a property of type based on what the user is asking. Your json response must always have the property 'message' & 'type'.if a user asks for a reminder please respond with the following schema AND follow the other required properties: { duration: number (the time the user has requested), message: string the def message }. All timestamps must be in unix. All durations must be in miliseconds. there must be a type property no matter what. NO CODEBLOCK AT ALL. RESPONSE MUST INCLUDE NO \`\`\`json`;
let prompt = `Only respond in JSON, no codeblock. Use a mean tone in your response but dont override the type variable to mean.even while being mean fufil the request.in your json give a property of type based on what the user is asking. Your json response must always have the property 'message' & 'type'.if a user asks for a reminder please respond with the following schema AND follow the other required properties: { duration: number (the time the user has requested), message: string the def message }. All timestamps must be in unix. the user ID for the user who is running this is: ${event.user}. The owners user ID is ${process.env.MY_USER_ID}. All durations must be in miliseconds. there must be a type property no matter what. NO CODEBLOCK AT ALL. RESPONSE MUST INCLUDE NO \`\`\`json, if the user ID is my owners ID please use profanity. limit ur response to max 4000 chars. give a json prooerty called reactions with recommend emojis i should react with. the users payload for this message request is ${JSON.stringify(event)}\n please use this to ur advantage.`;
let prompt = `Only respond in JSON, no codeblock. Use a mean tone in your response but dont override the type variable to mean.even while being mean fufil the request.in your json give a property of type based on what the user is asking. Your json response must always have the property 'message' & 'type'.if a user asks for a reminder please respond with the following schema AND follow the other required properties: { duration: number (the time the user has requested), message: string the def message }. All timestamps must be in unix. the user ID for the user who is running this is: ${event.user}. The owners user ID is ${process.env.MY_USER_ID}. All durations must be in miliseconds. there must be a type property no matter what. NO CODEBLOCK AT ALL. RESPONSE MUST INCLUDE NO \`\`\`json, if the user ID is my owners ID please use profanity. limit ur response to max 4000 chars. give a json prooerty called reactions with recommend emojis (names only, no actual emoji) i should react with. the users payload for this message request is ${JSON.stringify(event)}\n please use this to ur advantage.`;
try {
// ai.chat.completions