fix: repeating function repeats now

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-05-11 08:55:02 +02:00
parent 47b3674b6e
commit 27aee06681
2 changed files with 1 additions and 2 deletions

View file

@ -21,7 +21,6 @@ A Discord music bot, written in Kotlin using the kord library.
## Known issues
- The Repeat feature does not function
- The nowplaying command always shows the current position of the track at 0s
## Commands & Features

View file

@ -75,7 +75,7 @@ class GuildTrackScheduler(val pl: Player) {
private suspend fun onTrackEnd(e: TrackEndEvent) {
if (e.reason.mayStartNext) {
if (repeating) {
Logger.out("Repeating track....")
Logger.out("Repeating track...")
this.pl.playTrack(e.getTrack().copy())
return
}