Skip to content
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

[Feature suggestion] - stop/pause/start scan via telegram #387

Open
Yann-F opened this issue Jul 6, 2023 · 1 comment
Open

[Feature suggestion] - stop/pause/start scan via telegram #387

Yann-F opened this issue Jul 6, 2023 · 1 comment

Comments

@Yann-F
Copy link

Yann-F commented Jul 6, 2023

Hi,

First of all thank's a lot for your work and sharing it like this.

It's should be nice to be able to change scan statut from telegram, thus from anywhere with a smartphone.
For instance to stop scan when we don't want magic bag and start it later.
It's should help to reduce the risk to be banned by TGTG.
For exemple here are some usefull options for telegram :
�/stop -> disable scanning
/start -> enable scanning
/pause xx -> disable scan an auto enable it again after xx minutes
/setSleepTime yy -> change the SleepTime value to yy seconds
/SleepTime -> display the SleepTime value
/isScanning -> display the scan statut (stopped/running/paused for zz min)

I have no idea of what is it possible to do or not.

Thanks.

@floriegl
Copy link
Contributor

floriegl commented Jul 7, 2023

As I also worked with the codebase of this project before I can tell you, that yes, everything would be possible, bit it is not really something easy to implement as all notifiers (including the Telegram one) don't have access to the scanner. For the reservations feature there was an external class created which allowed the scanner to execute the reservations on each job call.

Maybe take a look at ScheduleCron in https://github.com/Der-Henning/tgtg/wiki/Configuration#main--general-settings. It allows you to configure the times ranges when the scanner should run or be disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants