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:
Hugo Hedlund
2020-02-14 15:13:18 +01:00
committed by GitHub
parent 9e1f358f82
commit 6ddaff6260
2 changed files with 18 additions and 5 deletions

View 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.