piixishstream 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,7 +186,7 @@ export function prepareStream(input, options = {}, cancelSignal) {
186
186
  // realtime control mechanism
187
187
  let currentVolume = 1;
188
188
  let zmqClientPromise;
189
- if (includeAudio && !isBun() && !isDeno()) {
189
+ if (includeAudio && !isBun() && !isDeno() && process.env.ENABLE_ZMQ === "true") {
190
190
  function randomInclusive(start, end) {
191
191
  return Math.floor(Math.random() * (end - start + 1)) + start;
192
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piixishstream",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Experiment for making video streaming work for discord selfbots",
5
5
  "main": "./dist/index.js",
6
6
  "exports": "./dist/index.js",
@@ -344,7 +344,7 @@ export function prepareStream(
344
344
  // realtime control mechanism
345
345
  let currentVolume = 1;
346
346
  let zmqClientPromise: Promise<Request> | undefined;
347
- if (includeAudio && !isBun() && !isDeno()) {
347
+ if (includeAudio && !isBun() && !isDeno() && process.env.ENABLE_ZMQ === "true") {
348
348
  function randomInclusive(start: number, end: number) {
349
349
  return Math.floor(Math.random() * (end - start + 1)) + start;
350
350
  }