mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
forgor 💀
This commit is contained in:
parent
9c34561bac
commit
3f5e7d70f7
1 changed files with 1 additions and 8 deletions
|
@ -2,8 +2,7 @@ const { Client, Collection, SlashCommandBuilder, ContextMenuCommandBuilder } = r
|
|||
{ Player } = require("discord-player"),
|
||||
{ GiveawaysManager } = require("discord-giveaways"),
|
||||
{ REST } = require("@discordjs/rest"),
|
||||
{ Routes } = require("discord-api-types/v10"),
|
||||
{ Configuration, OpenAIApi } = require("openai");
|
||||
{ Routes } = require("discord-api-types/v10");
|
||||
|
||||
const BaseEvent = require("./BaseEvent.js"),
|
||||
BaseCommand = require("./BaseCommand.js"),
|
||||
|
@ -35,12 +34,6 @@ class JaBa extends Client {
|
|||
this.databaseCache.usersReminds = new Collection();
|
||||
this.databaseCache.mutedUsers = new Collection();
|
||||
|
||||
const configuration = new Configuration({
|
||||
apiKey: this.config.apiKeys.openai,
|
||||
});
|
||||
|
||||
this.openai = new OpenAIApi(configuration);
|
||||
|
||||
this.player = Player.singleton(this);
|
||||
|
||||
this.player.events.on("playerStart", async (queue, track) => {
|
||||
|
|
Loading…
Reference in a new issue