music: disable hack

This commit is contained in:
Cynthia Foxwell 2025-08-14 15:41:16 -06:00
parent 6d1dc784af
commit 2083b4ba71
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -1,8 +1,8 @@
const {Collection, VoiceConnection} = require("@projectdysnomia/dysnomia"); const {Collection} = require("@projectdysnomia/dysnomia");
const WebSocket = require("ws"); //const WebSocket = require("ws");
const ffprobe = require("node-ffprobe"); const ffprobe = require("node-ffprobe");
const {ProxyAgent} = require("proxy-agent"); //const {ProxyAgent} = require("proxy-agent");
const Command = require("#lib/command.js"); const Command = require("#lib/command.js");
@ -23,7 +23,7 @@ let SOUNDCLOUD_CLIENTID;
hf.voiceStorage = hf.voiceStorage || new Collection(); hf.voiceStorage = hf.voiceStorage || new Collection();
const voiceStorage = hf.voiceStorage; const voiceStorage = hf.voiceStorage;
if (hf.config.proxy) { /*if (hf.config.proxy) {
process.env.HTTP_PROXY = hf.config.proxy; process.env.HTTP_PROXY = hf.config.proxy;
const agent = new ProxyAgent({}); const agent = new ProxyAgent({});
process.env.HTTP_PROXY = null; process.env.HTTP_PROXY = null;
@ -42,7 +42,7 @@ if (hf.config.proxy) {
}, },
configurable: true, configurable: true,
}); });
} }*/
// https://stackoverflow.com/a/12646864 § "Updating to ES6 / ECMAScript 2015" // https://stackoverflow.com/a/12646864 § "Updating to ES6 / ECMAScript 2015"
function shuffleArray(array) { function shuffleArray(array) {