Neodposlouchávej less earrapy

This commit is contained in:
Histmy 2021-02-09 00:30:18 +01:00
parent 2e8df16ff7
commit 8ecd830259

2
app.js
View File

@ -49,7 +49,7 @@ client.on('voiceStateUpdate', (bef, aft) => {
if (!aft.channel || !aft.guild.voice || aft.member.user === client.user) return; if (!aft.channel || !aft.guild.voice || aft.member.user === client.user) return;
if (!aft.guild.voice.connection) return; if (!aft.guild.voice.connection) return;
if (aft.mute && !aft.deaf) { if (aft.mute && !aft.deaf) {
const disp = aft.guild.voice.connection.play('./zvuky/neodposlouchavej.ogg'); const disp = aft.guild.voice.connection.play('./zvuky/neodposlouchavej.ogg', { volume: 0.38 });
disp.on('finish', () => aft.setDeaf(true, 'otposlouchávala ta gadza')); disp.on('finish', () => aft.setDeaf(true, 'otposlouchávala ta gadza'));
} }