From 2083b4ba7102dc2912dc5f1831cd14c8c983d513 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Thu, 14 Aug 2025 15:41:16 -0600 Subject: [PATCH 1/2] music: disable hack --- src/modules/music.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/music.js b/src/modules/music.js index caeefa0..a47f216 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -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 {ProxyAgent} = require("proxy-agent"); +//const {ProxyAgent} = require("proxy-agent"); const Command = require("#lib/command.js"); @@ -23,7 +23,7 @@ let SOUNDCLOUD_CLIENTID; hf.voiceStorage = hf.voiceStorage || new Collection(); const voiceStorage = hf.voiceStorage; -if (hf.config.proxy) { +/*if (hf.config.proxy) { process.env.HTTP_PROXY = hf.config.proxy; const agent = new ProxyAgent({}); process.env.HTTP_PROXY = null; @@ -42,7 +42,7 @@ if (hf.config.proxy) { }, configurable: true, }); -} +}*/ // https://stackoverflow.com/a/12646864 ยง "Updating to ES6 / ECMAScript 2015" function shuffleArray(array) { From 9cd62155d8bf00550136aaca7f117dd505c9e291 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Thu, 14 Aug 2025 15:53:19 -0600 Subject: [PATCH 2/2] docking --- Dockerfile | 13 +++++++++++++ compose.yaml | 3 +++ package.json | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..190313a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:lts-slim AS base +ENV PNPM_HOME="/pnpm" +ENV PATH="$PNPM_HOME:$PATH" +RUN corebpack enable +COPY . /app +WORKDIR /app + +FROM base AS deps +RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile + +FROM base +COPY --from=deps /app/node_modules /app/node_modules +CMD [ "pnpm", "start" ] diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..d2bc33a --- /dev/null +++ b/compose.yaml @@ -0,0 +1,3 @@ +services: + hiddenphox: + build: . diff --git a/package.json b/package.json index 08fa235..0321cc7 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Discord bot", "main": "src/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "start": "node src/index.js", "prepare": "husky install" }, "repository": {