#how to make a /daily command with cooldown
1 messages · Page 1 of 1 (latest)
and people always use it and then come here and complain when it doesnt work
.
anyways, you should format your code in a code block (```code here```) to make it easier to read (right now i cant see indentation).
commands also have a cooldown property which will let you not use a variable
also, when you add (the last line), you have to add 2 timespans, so it would be 86400 seconds. you can also just set {something} to 10 hours from now.
Just add the word cooldown after the command and time you can also add "cooldown message" for a message when the cooldown is not done yet
It sucks wt making any code rlly
why not just use command cooldowns?
command /example: cooldown: cooldown message: trigger: code here
it'll reset everytime you reload the skript though so i recommend storing the var 👍
Fun fact of the day
You can add a cooldown storage to store the cooldown in a variable so it doesn’t reset
command /example: cooldown: cooldown message: cooldown storage: trigger: code here
Love how 4 different ppl said use cooldown
It’s the command cooldown… bro just oook at the docs for 0.2 seconds
It stores it in a variable
So it doesn’t reset when the server restarts or you reload the akript
Ohh so if timer is 10 sec and i reload it it wont restart to 0?
Yeah
Yoy can name it what you want