remove repl.it check
This commit is contained in:
parent
a8668e0b3f
commit
0c3dcbf3c7
2 changed files with 1 additions and 24 deletions
|
@ -1281,8 +1281,7 @@ export class Player extends EventEmitter {
|
||||||
queue.stream = newStream;
|
queue.stream = newStream;
|
||||||
queue.voiceConnection.play(newStream, {
|
queue.voiceConnection.play(newStream, {
|
||||||
type: 'opus',
|
type: 'opus',
|
||||||
bitrate: 'auto',
|
bitrate: 'auto'
|
||||||
volume: Util.isRepl() ? false : undefined
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (seekTime) {
|
if (seekTime) {
|
||||||
|
|
|
@ -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
|
* Checks if the given voice channel is empty
|
||||||
* @param {DiscordVoiceChannel} channel The voice channel
|
* @param {DiscordVoiceChannel} channel The voice channel
|
||||||
|
|
Loading…
Reference in a new issue