From 97f12338063e49c5439387813b603ddb884c30d7 Mon Sep 17 00:00:00 2001 From: ayeuhugyu Date: Wed, 8 Nov 2023 11:50:35 -0800 Subject: [PATCH] Upload files to "/" --- notclyde.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/notclyde.js b/notclyde.js index 4e91b9b..5181aa8 100644 --- a/notclyde.js +++ b/notclyde.js @@ -16,11 +16,12 @@ export default { description: "ask a chatbot that is Powered by OpenAI:tm: whatever the fk you want", arguments: "message", execute(message, args) { - const msgnoprefix = message.content.slice(prefix.length + this.name.length); + const prompt = message.content.slice(prefix.length + this.name.length); + action.reply(message, `generating response for \`${prompt}\``) openai .createChatCompletion({ model: "gpt-3.5-turbo", - messages: [{ role: "user", content: message.content }], + messages: [{ role: "user", content: prompt }], }) .then((res) => { action.reply(message, res.data.choices[0].message.content);