Skip to content

Commit

Permalink
Update ShuffleCommand.kt
Browse files Browse the repository at this point in the history
Removed the outer ShuffleCommand class.
  • Loading branch information
mtnkodiak authored Oct 27, 2021
1 parent 15263bd commit 8329153
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/main/kotlin/dev/arbjerg/ukulele/command/ShuffleCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@ import dev.arbjerg.ukulele.jda.Command
import dev.arbjerg.ukulele.jda.CommandContext
import org.springframework.stereotype.Component

class ShuffleCommand {

@Component
class ShuffleCommand : Command("shuffle") {
override suspend fun CommandContext.invoke() {
player.shuffle()
reply("This list has been shuffled.")
}
@Component
class ShuffleCommand : Command("shuffle") {
override suspend fun CommandContext.invoke() {
player.shuffle()
reply("This list has been shuffled.")
}

override fun HelpContext.provideHelp() {
addUsage("")
addDescription("Shuffles the remaining tracks in the list.")
}
override fun HelpContext.provideHelp() {
addUsage("")
addDescription("Shuffles the remaining tracks in the list.")
}
}

0 comments on commit 8329153

Please sign in to comment.