From 06f4596e151b3fc3db04ea5dd5da80a55860fd93 Mon Sep 17 00:00:00 2001 From: Lukian LEIZOUR Date: Wed, 22 Feb 2023 18:36:49 +0100 Subject: [PATCH] commit --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 1d2fc1a..cae6db2 100644 --- a/app.js +++ b/app.js @@ -132,7 +132,7 @@ client.on('messageCreate', async msg => { answerQuestion(msg.content.slice(+3)).then((res) => { console.log('[Discord] Sent answer to : ' + msg.content.slice(+3)); addToLogs('[Discord] Sent answer to : ' + msg.content.slice(+3)); - msg.reply(res.data.choices[0].text.slice(+2)); + msg.reply(res.data.choices[0].text); }).catch((err) => { console.log(err); addToLogs(err);