diff --git a/home-manager/modules/nushell/scripts/kink.nu b/home-manager/modules/nushell/scripts/kink.nu index 74fd65f..41a0c71 100644 --- a/home-manager/modules/nushell/scripts/kink.nu +++ b/home-manager/modules/nushell/scripts/kink.nu @@ -11,9 +11,9 @@ export def main [channel?: string] { }) let playlist = ($playlist.playlist | transpose | where {|x| ($x.column0 | str starts-with "File") } | get column1) mpc clear - let streamIndex = (random integer ..(($playlist | length) - 1)) + let streamIndex = (random int ..(($playlist | length) - 1)) echo $"Playing stream ($streamIndex)" let stream = ($playlist | get $streamIndex) mpc add $stream mpc play -} \ No newline at end of file +}