Skip to content

Commit

Permalink
register the command
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Jun 1, 2024
1 parent e17e5fa commit b52b6fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/ListenCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/NutgramServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b52b6fb

Please sign in to comment.