forgor 💀

This commit is contained in:
Jonny_Bro (Nikita) 2023-04-21 22:47:21 +05:00
parent 9c34561bac
commit 3f5e7d70f7

View file

@ -2,8 +2,7 @@ const { Client, Collection, SlashCommandBuilder, ContextMenuCommandBuilder } = r
{ Player } = require("discord-player"), { Player } = require("discord-player"),
{ GiveawaysManager } = require("discord-giveaways"), { GiveawaysManager } = require("discord-giveaways"),
{ REST } = require("@discordjs/rest"), { REST } = require("@discordjs/rest"),
{ Routes } = require("discord-api-types/v10"), { Routes } = require("discord-api-types/v10");
{ Configuration, OpenAIApi } = require("openai");
const BaseEvent = require("./BaseEvent.js"), const BaseEvent = require("./BaseEvent.js"),
BaseCommand = require("./BaseCommand.js"), BaseCommand = require("./BaseCommand.js"),
@ -35,12 +34,6 @@ class JaBa extends Client {
this.databaseCache.usersReminds = new Collection(); this.databaseCache.usersReminds = new Collection();
this.databaseCache.mutedUsers = 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 = Player.singleton(this);
this.player.events.on("playerStart", async (queue, track) => { this.player.events.on("playerStart", async (queue, track) => {