From 3706e1e9281d1ca336f63a2ad35d2256a284bef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Mon, 6 Oct 2025 16:45:06 +0200 Subject: [PATCH] fix: Output bot id on talk:bot:install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- lib/Command/Bot/Install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Command/Bot/Install.php b/lib/Command/Bot/Install.php index 1b568fe4d1..0d0b444c97 100644 --- a/lib/Command/Bot/Install.php +++ b/lib/Command/Bot/Install.php @@ -115,7 +115,7 @@ class Install extends Base { $bot->setState($noSetup ? Bot::STATE_NO_SETUP : Bot::STATE_ENABLED); $bot->setFeatures($featureFlags); try { - $this->botServerMapper->insert($bot); + $botEntity = $this->botServerMapper->insert($bot); } catch (\Exception $e) { if ($e instanceof Exception && $e->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) { $output->writeln('Bot with the same secret is already registered'); @@ -126,8 +126,8 @@ class Install extends Base { } } - $output->writeln('Bot installed'); + $output->writeln('ID: ' . $botEntity->getId()); return 0; } }