DEV Community

loading...

Discussion on: Send automated Discord messages through Webhooks using JavaScript

Collapse
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?

Collapse
oskarcodes profile image
Oskar Codes Author

You could start a Node server and use a node module like this one: npmjs.com/package/discord-webhook-...
Then you could maybe use a window.setInterval to execute it repeatedly with an interval.