discord-chat-gpt
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "discord-chat-gpt", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Chat-GPT Chat Bot For Discord", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,3 +39,2 @@ # Discord Chat GPT | ||
apiKey: `OPEN_AI_KEY`, // get from https://beta.openai.com/account/api-keys | ||
orgKey: `Organization_ID`, // get from https://beta.openai.com/account/org-settings | ||
}); | ||
@@ -57,5 +56,2 @@ | ||
if (message.channel.id === channel.id) { | ||
let msg = await message.reply({ | ||
content: `Waiting ....`, | ||
}); | ||
let chatreply = await chatGpt | ||
@@ -66,3 +62,3 @@ .chat(message.content, message.author.username) | ||
}); | ||
msg.edit({ | ||
message.reply({ | ||
content: `${chatreply}`, | ||
@@ -69,0 +65,0 @@ }); |
3727
70