This commit is contained in:
Lukian LEIZOUR 2023-02-22 18:36:49 +01:00
parent a79a05bc94
commit 06f4596e15

2
app.js
View file

@ -132,7 +132,7 @@ client.on('messageCreate', async msg => {
answerQuestion(msg.content.slice(+3)).then((res) => { answerQuestion(msg.content.slice(+3)).then((res) => {
console.log('[Discord] Sent answer to : ' + msg.content.slice(+3)); console.log('[Discord] Sent answer to : ' + msg.content.slice(+3));
addToLogs('[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) => { }).catch((err) => {
console.log(err); console.log(err);
addToLogs(err); addToLogs(err);