forked from snxraven/rai-serge-discord-bot
Merge branch 'upstream'
This commit is contained in:
@ -55,6 +55,7 @@ module.exports = {
|
||||
|
||||
if (!response.data.answer) throw new Error("Did not receive a reply. API error?")
|
||||
|
||||
|
||||
interaction.editReply(response.data.answer);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
|
@ -52,8 +52,7 @@ module.exports = {
|
||||
|
||||
run: async (client, interaction) => {
|
||||
// set a default prompt
|
||||
var initPrompt = process.env.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 = process.env.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
|
||||
|
||||
|
Reference in New Issue
Block a user