Browse Source

init storage folder if not exist

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

7
src/cli/bot.php

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

Loading…
Cancel
Save