tgtg
tgtg copied to clipboard
[Feature suggestion] - stop/pause/start scan via telegram
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.
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.