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

Features addition: checkpoint, failure notification, + #10

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

Conversation

jgabriel98
Copy link

@jgabriel98 jgabriel98 commented Jan 13, 2021

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
Copy link
Author

jgabriel98 commented Jan 13, 2021

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

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

Successfully merging this pull request may close these issues.

1 participant