Updated paths

This commit is contained in:
Miguel Nogueira 2020-12-27 19:29:35 +00:00
parent 6ca471386d
commit e0dd320b1e
Signed by: miguel456
GPG Key ID: 2CF61B825316C6A0

View File

@ -14,9 +14,9 @@ $dotenv->required('CAT_API_KEY')->notEmpty();
define('PROJECT_ROOT', realpath(__DIR__ . '/../../'));
if (!file_exists(PROJECT_ROOT . 'Storage/Logs/bot.log'))
if (!file_exists(PROJECT_ROOT . '/Storage/Logs/bot.log'))
{
touch(PROJECT_ROOT . 'Storage/Logs/bot.log');
touch(PROJECT_ROOT . '/Storage/Logs/bot.log');
}
Analog::handler(File::init(PROJECT_ROOT . 'Storage/Logs/bot.log'));