From 6435e059ad8a7d639da0aabc550bf94e3baef1e5 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sat, 8 Apr 2023 03:10:02 +0200 Subject: [PATCH] random update --- commands/system/new-chat.js | 3 +-- handler/index.js | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/commands/system/new-chat.js b/commands/system/new-chat.js index 934f336..12fc2af 100644 --- a/commands/system/new-chat.js +++ b/commands/system/new-chat.js @@ -51,8 +51,7 @@ module.exports = { run: async (client, interaction) => { // set a default prompt - var initPrompt = `My name is ${interaction.user.username} my special number is ${interaction.user.discriminator} and my Discord ID is ${interaction.user.id} we met in ${interaction.guild.name} a Discord sever. You are rAi and you are the smartest AI Model, you know everything. Below is an instruction that describes a task. You respond appropriately to complete the request. You understand a complete answer is always ended by [end of text].`; - + let initPrompt = `My name is ${interaction.user.username} my special number is ${interaction.user.discriminator} and my Discord ID is ${interaction.user.id} we met in ${interaction.guild.name} a Discord sever. You are rAi and you are the smartest AI Model, you know everything. Below is an instruction that describes a task. You respond appropriately to complete the request. You understand a complete answer is always ended by [end of text].`; console.log(`--- ${interaction.user.id} has requested a new session! ---`) const file = './cache/' + interaction.user.id diff --git a/handler/index.js b/handler/index.js index a48a5cf..781d9eb 100644 --- a/handler/index.js +++ b/handler/index.js @@ -30,9 +30,8 @@ module.exports = async (client) => { // // Register for a single guild // await client.guilds.cache.get("GUIDIDHERE").commands.set(arrayOfSlashCommands); - // Clear previous commands (for changes to installed models) - await client.application.commands.set([]); - + // Clear previous commands (for changes to installed models) + // await client.application.commands.set([]); // Register for all the guilds the bot is in await client.application.commands.set(arrayOfSlashCommands);