I don’t know how to do cooldowns for my bot

I have create a Money System with work
And when the user type: =work …
But then 5 Minutes Cooldown and i dont know the code :confused:
PLS HELP ME FAST
JAVASCRIPT

Hi Tuto! May I ask if you’re using a command handler?

You can use the setTimeout function to execute code after a delay.

e.g

setTimeout(function() {
    // this code will run after 1 second
    console.log("Hello, World!")
}, 1000); // <— the time is in milliseconds. 1 second = 1000 milliseconds. 1 minute = 60000 milliseconds

Hey there Tuto!

I see you have issues with cooldowns. If your using Discord.js you can refer to there guide Here (click me).

Hope This Help!