DEV Community


Discussion on: Send automated Discord messages through Webhooks using JavaScript

jetfire158 profile image
jetfire158 • Edited

So I can just store the html file on the local machine? What would I need to add in order to tell it to execute every 2 hours? And could I run the webhook off of heroku or somewhere so that I wouldn't have to keep my PC on in order for it to work?

oskarcodes profile image
Oskar Codes Author

You could start a Node server and use a node module like this one:
Then you could maybe use a window.setInterval to execute it repeatedly with an interval.