Skip to content

Add --watch option to nutgram:run command #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

Lukasss93
Copy link
Member

@Lukasss93 Lukasss93 commented Apr 7, 2025

This PR adds a --watch option to the nutgram:run command, which allows you to run the bot in watch mode.
This means that the bot will automatically restart whenever you make changes to the code,
making it easier to develop and test your bot.

Usage

To use the --watch option, simply run the following command:

php artisan nutgram:run --watch

Requirements

In your project, you should have the JavaScript package chokidar installed. You can install it via npm

npm install chokidar

or Yarn

yarn add chokidar

Configuration

You can configure the watch command in your config/nutgram.php file.

// ...

// Watch paths used by the "nutgram:run --watch" command
'watch_paths' => [
    app_path('Telegram'),
],

@Lukasss93 Lukasss93 added the enhancement New feature or request label Apr 7, 2025
@Lukasss93 Lukasss93 requested a review from sergix44 April 7, 2025 23:18
@Lukasss93 Lukasss93 self-assigned this Apr 7, 2025
@Lukasss93 Lukasss93 added the help wanted Extra attention is needed label Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant