From 2d0adeedcb6d0cf3816c246c77098acc95349bdc Mon Sep 17 00:00:00 2001 From: ayeuhugyu Date: Wed, 8 Nov 2023 12:22:53 -0800 Subject: [PATCH] Update notclyde.js --- notclyde.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/notclyde.js b/notclyde.js index d2e9394..917b623 100644 --- a/notclyde.js +++ b/notclyde.js @@ -18,6 +18,7 @@ export default { execute(message, args) { const prompt = message.content.slice(prefix.length + this.name.length); const sent = action.reply(message, `generating response for \`${prompt}\``) + message.channel.startTyping() openai .createChatCompletion({ model: "gpt-3.5-turbo", @@ -25,6 +26,7 @@ export default { }) .then((res) => { action.edit(sent, res.data.choices[0].message.content); + message.channel.stopTyping() }) .catch((e) => { console.log(e);