Browse Source

init storage folder if not exist

main
ghost 5 months ago
parent
commit
80be350382
  1. 7
      src/cli/bot.php

7
src/cli/bot.php

@ -34,6 +34,13 @@ catch (Exception $e) @@ -34,6 +34,13 @@ catch (Exception $e)
// Connect DB
try
{
@mkdir(
sprintf(
'%s/../../storage',
__DIR__
)
);
$database = new PDO(
sprintf(
'sqlite:%s',

Loading…
Cancel
Save