From aa50ca34113e3d828fb7b28eaf6528700f82767b Mon Sep 17 00:00:00 2001 From: big nutty <3515180-bignutty@users.noreply.gitlab.com> Date: Thu, 12 Oct 2023 11:06:26 +0000 Subject: [PATCH] less hacky date --- commands/message/fun/bard.js | 2 +- commands/message/fun/chat.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/message/fun/bard.js b/commands/message/fun/bard.js index 23e83a5..9758b76 100644 --- a/commands/message/fun/bard.js +++ b/commands/message/fun/bard.js @@ -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 diff --git a/commands/message/fun/chat.js b/commands/message/fun/chat.js index 2af9140..80c5fb6 100644 --- a/commands/message/fun/chat.js +++ b/commands/message/fun/chat.js @@ -45,7 +45,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.` + 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.` if(args.prompt !== "") prompt = args.prompt // Get content if the user replies to anything