Sapphire Dynamic Cooldown Per User
Hi! i was wondering if sapphire can use a dynamic cooldown, so i can set a dynamic cooldown per user. Does it possible? let me know. Thanks!
6 Replies
cooldowns can be per user, but if by dynamic you mean different cooldowns for different users, you'll have to write your own precondition for that.
so, i just need to remove the default cooldown system and write my own precondition right?
well, i was making an economny bot that has features like work, daily, etc. the default cooldown for each command is 10s and some users use macro to run
work
command, so i wonder if i could made a dynamic cooldown for each user when they run work
command it'll give a random cooldown between 10s-1m for exampleyou dont need to remove it. Just use a different name and add your own options
i see, yea it work
Basically just look at the sapphire code how cooldown is implemented and copy all the relevant data over
Thank you for the advice
i'll mark this as solved