Compare commits
3 Commits
4a371cf4d6
...
master
Author | SHA1 | Date | |
---|---|---|---|
6a024f8cb6 | |||
591eb227b3 | |||
17ba5e2048 |
@@ -8,7 +8,9 @@ module.exports = function (bot, api) {
|
||||
const channel = oldState.channel || newState.channel;
|
||||
if (!channel) return;
|
||||
if (channel.members.size < 2) {
|
||||
return await api.leaveChannel(channel);
|
||||
api.AudioQueue.flush();
|
||||
await api.leaveChannel(channel);
|
||||
|
||||
}
|
||||
await api.joinChannel(channel);
|
||||
let joined = false;
|
||||
|
@@ -14,7 +14,7 @@ async function getChatGPTResponse(prompt) {
|
||||
const api = new ChatGPTAPI({
|
||||
apiKey: process.env.OPENAI_API_KEY,
|
||||
completionParams: {
|
||||
model: 'gpt-4'
|
||||
model: 'gpt-4o'
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user