1
0
mirror of https://github.com/danog/magnaluna.git synced 2024-11-30 04:19:16 +01:00
This commit is contained in:
Daniil Gentili 2023-08-15 12:16:24 +02:00
parent 2bd5ab8f7e
commit 2b0e7e69c6

View File

@ -44,6 +44,11 @@ if (file_exists('vendor/autoload.php')) {
include 'madeline.php';
}
$songs = glob('*ogg')
if (!$songs) {
die('No songs defined! Convert some songs by sending them to https://t.me/libtgvoipbot');
}
/*class MessageLoop extends ResumableSignalLoop
{
const INTERVAL = 10000;
@ -214,7 +219,7 @@ class MyEventHandler extends SimpleEventHandler
{
$songs = glob('*ogg');
if (!$songs) {
die('No songs defined! Convert some songs as described in https://docs.madelineproto.xyz/docs/CALLS.html');
throw new \AssertionError('No songs defined! Convert some songs by sending them to https://t.me/libtgvoipbot');
}
$songs_length = count($songs);