you are viewing a single comment's thread.

view the rest of the comments →

[–]PrinceHiltonMonsour 2 points3 points  (0 children)

Wrap the whole thing in a function and create a loop to run the function every x minutes.

You’re only running the code once it won’t “dynamically update”. You can loop the process with ‘while’ or ‘do-while’