1
0
mirror of https://github.com/danog/magnaluna.git synced 2024-11-30 04:19:16 +01:00
magnaluna/songs.php

12 lines
276 B
PHP
Raw Normal View History

2019-10-29 18:31:09 +01:00
<?php
$songs = \glob('*raw');
if (!$songs) {
die('No songs defined! Convert some songs as described in https://docs.madelineproto.xyz/docs/CALLS.html#playing-mp3-files');
}
$songs_length = \count($songs);
for ($x = 0; $x < $songs_length; $x++) {
\shuffle($songs);
}