mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
Payday should store the last time it was used so it can be compared to the cooldown value rather than using a cooldown deco that won't reset if cooldown goes lower (#3496)
* Payday #3438 Changed next_payday to last_payday * Created towncrier entry * [PR #3496] Requested changes * rm .vs
This commit is contained in:
1
changelog.d/economy/3438.bugfix.rst
Normal file
1
changelog.d/economy/3438.bugfix.rst
Normal file
@@ -0,0 +1 @@
|
||||
Changes next_payday to last_payday. last_payday stores the latest time the command runned successfully, allows the command to dynamicly change with the PAYDAY_TIME variable, by checking if last_payday + PAYDAY_TIME >= current time.
|
||||
Reference in New Issue
Block a user