Instagram-Giveaways-Winner icon indicating copy to clipboard operation
Instagram-Giveaways-Winner copied to clipboard

Features addition: checkpoint, failure notification, +

Open jgabriel98 opened this issue 3 years ago • 1 comments

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 each User Target:

  • it will create and use the file connections_checkpoint.txt if the script is using a specific file
  • it will create and use the file <target_user_name>_connections_checkpoint.txt if the script is using a target user

note 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:

Captura de tela de 2021-01-13 18-20-31

jgabriel98 avatar Jan 13 '21 21:01 jgabriel98

the notification only works for linux systems.

i don't have a windows machine with this bot requiriments installed, so i will not try to implement the windows notification.

but this link shows how to do it: https://stackoverflow.com/questions/34980977/create-custom-windows-10-notification-boxes/42605444#42605444

here to: https://superuser.com/questions/1533512/create-notification-from-command-line-in-windows-10

jgabriel98 avatar Jan 13 '21 21:01 jgabriel98