Features addition: checkpoint, failure notification, + #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the following features where implemented:
Checkpoint
The script saves the index of the connections list, so on the next execution, it starts where it stoped. It will have independent checkpoint for
Specific file
, and for eachUser Target
:connections_checkpoint.txt
if the script is using a specific file<target_user_name>_connections_checkpoint.txt
if the script is using a target usernote that it will share checkpoint when using different custom files/specific files.
Failure notification
when the script tries to send the comment, but with not success, it will send a notification to the system with the following shell command
$ notify-send "Instagram-bot" "failed to comment \'<comment_here>\'"
.tested only on gnome, but after some research, i've found that it should work with all desktops (Gnome, KDE, XFCE...)
Sent comments count
the script now shows how many comments where posted, without polluting the screen (always updating the same line)
Interval showing
Show how much time it will wait until next post
the following features where implemented: