Removed unused commands
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
import { DefaultExtractors } from "@discord-player/extractor"
|
||||
import { Player } from "discord-player"
|
||||
import { YoutubeiExtractor } from "discord-player-youtubei"
|
||||
import { Redis } from "ioredis"
|
||||
import { ExtendedClient as Client } from "~/utils/Client"
|
||||
import env from "~/utils/Env"
|
||||
@@ -9,7 +6,6 @@ import { log } from "./Logger"
|
||||
|
||||
const client = new Client()
|
||||
const redis = new Redis(env.prod.REDISURI)
|
||||
const player = new Player(client)
|
||||
|
||||
let ft: "js" | "ts"
|
||||
if (process.env.NODE_ENV === "dev" && process.env.TYPESCRIPT === "true") {
|
||||
@@ -21,8 +17,6 @@ if (process.env.NODE_ENV === "dev" && process.env.TYPESCRIPT === "true") {
|
||||
class Illegitimate {
|
||||
async start() {
|
||||
await loadAllEvents(client, ft)
|
||||
await player.extractors.loadMulti(DefaultExtractors)
|
||||
await player.extractors.register(YoutubeiExtractor, {})
|
||||
await client.start()
|
||||
await this.databases()
|
||||
this.loadMethods()
|
||||
|
||||
Reference in New Issue
Block a user