From b52b6fb2d16133dcd4a1f4e4fcc4fff84cde219d Mon Sep 17 00:00:00 2001 From: Sergio Brighenti Date: Sat, 1 Jun 2024 21:24:45 +0200 Subject: [PATCH] register the command --- src/Console/ListenCommand.php | 1 + src/NutgramServiceProvider.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Console/ListenCommand.php b/src/Console/ListenCommand.php index 6840e71..38f233d 100644 --- a/src/Console/ListenCommand.php +++ b/src/Console/ListenCommand.php @@ -15,6 +15,7 @@ class ListenCommand extends Command public function handle(): void { + $this->info('Listening...'); while (true) { $app = App::configure(base_path())->create(); $bot = $app->make(Nutgram::class); diff --git a/src/NutgramServiceProvider.php b/src/NutgramServiceProvider.php index bf38a23..94d29a7 100644 --- a/src/NutgramServiceProvider.php +++ b/src/NutgramServiceProvider.php @@ -99,6 +99,7 @@ public function boot(): void $this->commands([ Console\RunCommand::class, + Console\ListenCommand::class, Console\RegisterCommandsCommand::class, Console\HookInfoCommand::class, Console\HookRemoveCommand::class,