diff --git a/src/Player.ts b/src/Player.ts index d10b4f0..6dfc19f 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -1281,8 +1281,7 @@ export class Player extends EventEmitter { queue.stream = newStream; queue.voiceConnection.play(newStream, { type: 'opus', - bitrate: 'auto', - volume: Util.isRepl() ? false : undefined + bitrate: 'auto' }); if (seekTime) { diff --git a/src/utils/Util.ts b/src/utils/Util.ts index 7826f5d..2d8e7c5 100644 --- a/src/utils/Util.ts +++ b/src/utils/Util.ts @@ -166,28 +166,6 @@ export class Util { }); } - /** - * Checks if this system is running in replit.com - * @returns {Boolean} - */ - static isRepl(): boolean { - if ('DP_REPL_NOCHECK' in process.env) return false; - - const REPL_IT_PROPS = [ - 'REPL_SLUG', - 'REPL_OWNER', - 'REPL_IMAGE', - 'REPL_PUBKEYS', - 'REPL_ID', - 'REPL_LANGUAGE', - 'REPLIT_DB_URL' - ]; - - for (const prop of REPL_IT_PROPS) if (prop in process.env) return true; - - return false; - } - /** * Checks if the given voice channel is empty * @param {DiscordVoiceChannel} channel The voice channel