forked from ChrisChrome/weather-bot
Oh, im stupid
- Fix volume not being listened to
This commit is contained in:
parent
6175762c47
commit
8436139593
2
index.js
2
index.js
|
@ -130,7 +130,7 @@ function JoinChannel(channel, track, volume, message) {
|
|||
resource = dVC.createAudioResource(track, { inlineVolume: true, silencePaddingFrames: 5 });
|
||||
player = dVC.createAudioPlayer();
|
||||
connection.player = player; // So we can access it later to pause/play/stop etc
|
||||
resource.volume.setVolume(2);
|
||||
resource.volume.setVolume(volume);
|
||||
connection.subscribe(player)
|
||||
player.play(resource);
|
||||
connection.on(dVC.VoiceConnectionStatus.Ready, () => { player.play(resource); })
|
||||
|
|
Loading…
Reference in a new issue