DEV Community

loading...

Discussion on: Send automated Discord messages through Webhooks using JavaScript

Collapse
enteruserhere22 profile image
EnterUsernameHere

How do you make it like send a message every 24 hours?

Collapse
br4dy0 profile image
Bradley Elko • Edited

set a timer for 24 hours that sends a request

Collapse
enteruserhere22 profile image
EnterUsernameHere

What would be the code to do that?
Sorry I am not very experienced at this.

Thread Thread
oskarcodes profile image
Oskar Codes Author

In JavaScript, you can use the setInterval method to run some code repeatedly.
Check out the documentation: developer.mozilla.org/en-US/docs/W...