mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
less hacky date
This commit is contained in:
parent
1a0e8f85bd
commit
aa50ca3411
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue