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

General improvements #1

Open
JaneIRL opened this issue Apr 13, 2023 · 0 comments
Open

General improvements #1

JaneIRL opened this issue Apr 13, 2023 · 0 comments

Comments

@JaneIRL
Copy link
Collaborator

JaneIRL commented Apr 13, 2023

Some improvements can be made to this script:

  • Saves oldStatus to a file (maybe called state.json or whatever) and loads it on startup, so that it won't re-post a status update after a restart unless the status actually changed.
  • Add a timestamp or a counter or whatever, so that the script will only post an update after the new status has been detected for 120 seconds / 2 retries or whatever configurable amount of seconds/retries. This way the updates won't be too annoying when the website gets a quite restart.
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

1 participant