From 2b0e7e69c600de07ad35e4f18316e4f533f8f51b Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 15 Aug 2023 12:16:24 +0200 Subject: [PATCH] Fixes --- magna.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/magna.php b/magna.php index efcab10..26d3bc7 100755 --- a/magna.php +++ b/magna.php @@ -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);