mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: ai prompt
This commit is contained in:
parent
7dd124e685
commit
8e698e6095
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue