Skip to content

Commit

Permalink
πŸ› fix: Autoplay bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzuZensai committed Aug 18, 2024
1 parent 664faad commit 04b7f66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/providers/DiscordMusicPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ export class DiscordMusicPlayerInstance {
this.discordPlayer.play(resource);
this.nekoPlayer.startCurrentStream();
this.events.emit('playing', new PlayerPlayingEvent(this));
});

this.discordPlayer.on('stateChange', (oldState, newState) => {
console.log('State change', oldState.status, newState.status);
if (oldState.status === 'playing' && newState.status === 'idle') {
this.nekoPlayer.endCurrentStream();
}
});
this.discordPlayer.on('stateChange', (oldState, newState) => {
console.log('State change', oldState.status, newState.status);
if (oldState.status === 'playing' && newState.status === 'idle') {
this.nekoPlayer.endCurrentStream();
}
});
}

Expand Down

0 comments on commit 04b7f66

Please sign in to comment.