diff --git a/src/Bot/init.php b/src/Bot/init.php index 464c926..f214552 100644 --- a/src/Bot/init.php +++ b/src/Bot/init.php @@ -14,6 +14,11 @@ $dotenv->required('CAT_API_KEY')->notEmpty(); define('PROJECT_ROOT', realpath(__DIR__ . '/../../')); +if (!file_exists(PROJECT_ROOT . 'Storage/Logs/bot.log')) +{ + touch(PROJECT_ROOT . 'Storage/Logs/bot.log'); +} Analog::handler(File::init(PROJECT_ROOT . 'Storage/Logs/bot.log')); + Analog::info("Finished intializing configuration and dependencies.");