load(); $_ENV['DEBUG'] = false; if ($argc === 2 and isset($argv[1]) && $argv[1] === '--debug') { $_ENV['DEBUG'] = true; } $client = new Client(); $homeassistant = new HomeassistantService($client); $foodsi = new FoodsiService($client); $bot = new BotService($homeassistant, $foodsi); $bot->run();