From 3f5e7d70f7bdea9f3a645ca3b0eff310f24dda1b Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Fri, 21 Apr 2023 22:47:21 +0500 Subject: [PATCH] =?UTF-8?q?forgor=20=F0=9F=92=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/JaBa.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/base/JaBa.js b/base/JaBa.js index d7544346..8bdac58c 100644 --- a/base/JaBa.js +++ b/base/JaBa.js @@ -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) => {