less hacky date

This commit is contained in:
big nutty 2023-10-12 11:06:26 +00:00
parent 1a0e8f85bd
commit aa50ca3411
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ module.exports = {
let input = args.text;
let prompt = `You are a friendly chat bot designed to help people.\n- Today\'s date is ${new Date().toUTCString().split(' ').splice(0,4).join(' ')}\n- You should always use gender neutral pronouns when possible.\n- When answering a question, be concise and to the point.\n- Try to keep responses below 1000 characters. This does not apply to subjects that require more exhaustive or in-depth explanation.`
let prompt = `You are a friendly chat bot designed to help people.\n- Today\'s date is ${new Date().toLocaleDateString('en-us', { weekday:"long", year:"numeric", month:"long", day:"numeric"})}\n- You should always use gender neutral pronouns when possible.\n- When answering a question, be concise and to the point.\n- Try to keep responses below 1000 characters. This does not apply to subjects that require more exhaustive or in-depth explanation.`
if(args.prompt !== "") prompt = args.prompt
// Get content if the user replies to anything